Skip to content

Commit dac4b95

Browse files
authored
Make *Status a sub resource (#175)
* Make QdrantClusterStatus a sub resource * status subresource for other types
1 parent 20a0692 commit dac4b95

12 files changed

+20
-8
lines changed

api/v1/qdrantcluster_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,7 @@ type NodeStatus struct {
882882
// +kubebuilder:printcolumn:name="Version",type=string,JSONPath=`.spec.version`
883883
// +kubebuilder:printcolumn:name="Phase",type=string,JSONPath=`.status.phase`
884884
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
885+
// +kubebuilder:subresource:status
885886

886887
// QdrantCluster is the Schema for the qdrantclusters API
887888
type QdrantCluster struct {

api/v1/qdrantclusterrestore_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ type QdrantClusterRestoreStatus struct {
6262
// +kubebuilder:resource:path=qdrantclusterrestores,singular=qdrantclusterrestore,shortName=qcrs;qcr
6363
// +kubebuilder:printcolumn:name="Phase",type=string,JSONPath=`.status.phase`
6464
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
65+
// +kubebuilder:subresource:status
6566

6667
// QdrantClusterRestore is the Schema for the qdrantclusterrestores API
6768
type QdrantClusterRestore struct {

api/v1/qdrantclusterscheduledsnapshot_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ type QdrantClusterScheduledSnapshotStatus struct {
5252
// +kubebuilder:printcolumn:name="retention",type=string,JSONPath=`.spec.retention`
5353
// +kubebuilder:printcolumn:name="scheduled",type=string,JSONPath=`.status.scheduled`
5454
// +kubebuilder:printcolumn:name="age",type=date,JSONPath=`.metadata.creationTimestamp`
55+
// +kubebuilder:subresource:status
5556

5657
// QdrantClusterScheduledSnapshot is the Schema for the qdrantclusterscheduledsnapshots API
5758
type QdrantClusterScheduledSnapshot struct {

api/v1/qdrantclustersnapshot_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ type VolumeSnapshotInfo struct {
7575
// +kubebuilder:printcolumn:name="retainUntil",type=string,JSONPath=`.status.retainUntil`
7676
// +kubebuilder:printcolumn:name="completion-time",type=string,JSONPath=`.status.completionTime`
7777
// +kubebuilder:printcolumn:name="age",type=date,JSONPath=`.metadata.creationTimestamp`
78+
// +kubebuilder:subresource:status
7879

7980
// QdrantClusterSnapshot is the Schema for the qdrantclustersnapshots API
8081
type QdrantClusterSnapshot struct {

charts/qdrant-kubernetes-api/templates/region-crds/qdrant.io_qdrantclusterrestores.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,6 @@ spec:
113113
type: object
114114
served: true
115115
storage: true
116-
subresources: {}
116+
subresources:
117+
status: {}
117118
{{ end }}

charts/qdrant-kubernetes-api/templates/region-crds/qdrant.io_qdrantclusters.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1249,5 +1249,6 @@ spec:
12491249
type: object
12501250
served: true
12511251
storage: true
1252-
subresources: {}
1252+
subresources:
1253+
status: {}
12531254
{{ end }}

charts/qdrant-kubernetes-api/templates/region-crds/qdrant.io_qdrantclusterscheduledsnapshots.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,6 @@ spec:
111111
type: object
112112
served: true
113113
storage: true
114-
subresources: {}
114+
subresources:
115+
status: {}
115116
{{ end }}

charts/qdrant-kubernetes-api/templates/region-crds/qdrant.io_qdrantclustersnapshots.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,5 +134,6 @@ spec:
134134
type: object
135135
served: true
136136
storage: true
137-
subresources: {}
137+
subresources:
138+
status: {}
138139
{{ end }}

crds/qdrant.io_qdrantclusterrestores.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,5 @@ spec:
112112
type: object
113113
served: true
114114
storage: true
115-
subresources: {}
115+
subresources:
116+
status: {}

crds/qdrant.io_qdrantclusters.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1248,4 +1248,5 @@ spec:
12481248
type: object
12491249
served: true
12501250
storage: true
1251-
subresources: {}
1251+
subresources:
1252+
status: {}

0 commit comments

Comments
 (0)