Skip to content

Commit

Permalink
Merge pull request #586 from cybozu-go/change_storage_version
Browse files Browse the repository at this point in the history
api: change the storage version to v1beta2
  • Loading branch information
ymmt2005 authored Oct 20, 2023
2 parents d5c3ae6 + b50a07a commit ccea762
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
1 change: 0 additions & 1 deletion api/v1beta1/backuppolicy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ type BackupPolicySpec struct {
}

//+kubebuilder:object:root=true
//+kubebuilder:storageversion

// BackupPolicy is a namespaced resource that should be referenced from MySQLCluster.
type BackupPolicy struct {
Expand Down
1 change: 0 additions & 1 deletion api/v1beta1/mysqlcluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,6 @@ type ReconcileInfo struct {

// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:storageversion
// +kubebuilder:printcolumn:name="Available",type="string",JSONPath=".status.conditions[?(@.type=='Available')].status"
// +kubebuilder:printcolumn:name="Healthy",type="string",JSONPath=".status.conditions[?(@.type=='Healthy')].status"
// +kubebuilder:printcolumn:name="Primary",type="integer",JSONPath=".status.currentPrimaryIndex"
Expand Down
1 change: 1 addition & 0 deletions api/v1beta2/backuppolicy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ func (s *BackupPolicySpec) validate() (admission.Warnings, field.ErrorList) {
}

//+kubebuilder:object:root=true
//+kubebuilder:storageversion

// BackupPolicy is a namespaced resource that should be referenced from MySQLCluster.
type BackupPolicy struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1beta2/mysqlcluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,7 @@ type ReconcileInfo struct {

// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:storageversion
// +kubebuilder:printcolumn:name="Available",type="string",JSONPath=".status.conditions[?(@.type=='Available')].status"
// +kubebuilder:printcolumn:name="Healthy",type="string",JSONPath=".status.conditions[?(@.type=='Healthy')].status"
// +kubebuilder:printcolumn:name="Primary",type="integer",JSONPath=".status.currentPrimaryIndex"
Expand Down
8 changes: 4 additions & 4 deletions charts/moco/templates/generated/crds/moco_crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2030,7 +2030,7 @@ spec:
- spec
type: object
served: true
storage: true
storage: false
- name: v1beta2
schema:
openAPIV3Schema:
Expand Down Expand Up @@ -4043,7 +4043,7 @@ spec:
- spec
type: object
served: true
storage: false
storage: true
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
Expand Down Expand Up @@ -9671,7 +9671,7 @@ spec:
type: object
type: object
served: true
storage: true
storage: false
subresources:
status: {}
- additionalPrinterColumns:
Expand Down Expand Up @@ -15427,6 +15427,6 @@ spec:
type: object
type: object
served: true
storage: false
storage: true
subresources:
status: {}
4 changes: 2 additions & 2 deletions config/crd/bases/moco.cybozu.com_backuppolicies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2183,7 +2183,7 @@ spec:
- spec
type: object
served: true
storage: true
storage: false
- name: v1beta2
schema:
openAPIV3Schema:
Expand Down Expand Up @@ -4353,4 +4353,4 @@ spec:
- spec
type: object
served: true
storage: false
storage: true
4 changes: 2 additions & 2 deletions config/crd/bases/moco.cybozu.com_mysqlclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6139,7 +6139,7 @@ spec:
type: object
type: object
served: true
storage: true
storage: false
subresources:
status: {}
- additionalPrinterColumns:
Expand Down Expand Up @@ -12435,6 +12435,6 @@ spec:
type: object
type: object
served: true
storage: false
storage: true
subresources:
status: {}
Original file line number Diff line number Diff line change
Expand Up @@ -2182,7 +2182,7 @@ spec:
- spec
type: object
served: true
storage: true
storage: false
- name: v1beta2
schema:
openAPIV3Schema:
Expand Down Expand Up @@ -4352,4 +4352,4 @@ spec:
- spec
type: object
served: true
storage: false
storage: true
Original file line number Diff line number Diff line change
Expand Up @@ -6149,7 +6149,7 @@ spec:
type: object
type: object
served: true
storage: true
storage: false
subresources:
status: {}
- additionalPrinterColumns:
Expand Down Expand Up @@ -12445,6 +12445,6 @@ spec:
type: object
type: object
served: true
storage: false
storage: true
subresources:
status: {}

0 comments on commit ccea762

Please sign in to comment.