Skip to content

Commit

Permalink
Do not use subresource status in CRDs
Browse files Browse the repository at this point in the history
  • Loading branch information
AKamyshnikova committed Nov 5, 2024
1 parent 4b53e20 commit 1a86629
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion api/v2/cassandrabackup_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ func (b BackupConditionType) HasFailed() bool {

// CassandraBackup is the Schema for the cassandrabackups API
// +k8s:openapi-gen=true
// +kubebuilder:subresource:status
type CassandraBackup struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand Down
1 change: 0 additions & 1 deletion api/v2/cassandracluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,6 @@ type CassandraNodeStatus struct {
// CassandraCluster is the Schema for the cassandraclusters API
// +k8s:openapi-gen=true
// +kubebuilder:storageversion
// +kubebuilder:subresource:status
// +kubebuilder:resource:path=cassandraclusters,scope=Namespaced,shortName=cassc;casscs
type CassandraCluster struct {
metav1.TypeMeta `json:",inline"`
Expand Down
1 change: 0 additions & 1 deletion api/v2/cassandrarestore_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ type CassandraRestoreSpec struct {
// +genclient:noStatus
// +resourceName=cassandrarestores
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// CassandraRestore is a Casskop Operator resource that represents the restoration of a backup of a Cassandra cluster
type CassandraRestore struct {
metav1.TypeMeta `json:",inline"`
Expand Down
2 changes: 0 additions & 2 deletions charts/casskop/crds/db.orange.com_cassandrabackups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,3 @@ spec:
type: string
served: true
storage: true
subresources:
status: {}
2 changes: 0 additions & 2 deletions charts/casskop/crds/db.orange.com_cassandraclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2156,5 +2156,3 @@ spec:
type: string
served: true
storage: true
subresources:
status: {}
2 changes: 0 additions & 2 deletions charts/casskop/crds/db.orange.com_cassandrarestores.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,3 @@ spec:
type: string
served: true
storage: true
subresources:
status: {}
2 changes: 0 additions & 2 deletions charts/multi-casskop/crds/db.orange.com_cassandrabackups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,3 @@ spec:
type: string
served: true
storage: true
subresources:
status: {}
Original file line number Diff line number Diff line change
Expand Up @@ -2156,5 +2156,3 @@ spec:
type: string
served: true
storage: true
subresources:
status: {}
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,3 @@ spec:
type: string
served: true
storage: true
subresources:
status: {}
2 changes: 0 additions & 2 deletions config/crd/bases/db.orange.com_cassandrabackups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,3 @@ spec:
type: string
served: true
storage: true
subresources:
status: {}
2 changes: 0 additions & 2 deletions config/crd/bases/db.orange.com_cassandraclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2156,5 +2156,3 @@ spec:
type: string
served: true
storage: true
subresources:
status: {}
2 changes: 0 additions & 2 deletions config/crd/bases/db.orange.com_cassandrarestores.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,3 @@ spec:
type: string
served: true
storage: true
subresources:
status: {}

0 comments on commit 1a86629

Please sign in to comment.