Skip to content

Commit

Permalink
Merge pull request #608 from cybozu-go/change_served_mark
Browse files Browse the repository at this point in the history
api: add unservedversion marker
  • Loading branch information
zoetrope authored Nov 14, 2023
2 parents 413bf19 + 4585648 commit 76a8e80
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 9 deletions.
1 change: 1 addition & 0 deletions api/v1beta1/backuppolicy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ type BackupPolicySpec struct {

//+kubebuilder:object:root=true
//+kubebuilder:deprecatedversion
//+kubebuilder:unservedversion

// BackupPolicy is a namespaced resource that should be referenced from MySQLCluster.
type BackupPolicy struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1beta1/mysqlcluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ type ReconcileInfo struct {
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:deprecatedversion
// +kubebuilder:unservedversion
// +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
4 changes: 2 additions & 2 deletions charts/moco/templates/generated/crds/moco_crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2050,7 +2050,7 @@ spec:
required:
- spec
type: object
served: true
served: false
storage: false
- name: v1beta2
schema:
Expand Down Expand Up @@ -9732,7 +9732,7 @@ spec:
- currentPrimaryIndex
type: object
type: object
served: true
served: false
storage: false
subresources:
status: {}
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/moco.cybozu.com_backuppolicies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2204,7 +2204,7 @@ spec:
required:
- spec
type: object
served: true
served: false
storage: false
- name: v1beta2
schema:
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/moco.cybozu.com_mysqlclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6160,7 +6160,7 @@ spec:
- currentPrimaryIndex
type: object
type: object
served: true
served: false
storage: false
subresources:
status: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2203,7 +2203,7 @@ spec:
required:
- spec
type: object
served: true
served: false
storage: false
- name: v1beta2
schema:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6170,7 +6170,7 @@ spec:
- currentPrimaryIndex
type: object
type: object
served: true
served: false
storage: false
subresources:
status: {}
Expand Down
2 changes: 1 addition & 1 deletion e2e/testdata/backup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ metadata:
namespace: backup
name: backup-owner
---
apiVersion: moco.cybozu.com/v1beta1
apiVersion: moco.cybozu.com/v1beta2
kind: BackupPolicy
metadata:
namespace: backup
Expand Down
2 changes: 1 addition & 1 deletion e2e/testdata/backup_gcs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ metadata:
namespace: backup-gcs
name: backup-owner
---
apiVersion: moco.cybozu.com/v1beta1
apiVersion: moco.cybozu.com/v1beta2
kind: BackupPolicy
metadata:
namespace: backup-gcs
Expand Down
2 changes: 1 addition & 1 deletion e2e/testdata/backup_tls.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ metadata:
namespace: backup-tls
name: backup-owner
---
apiVersion: moco.cybozu.com/v1beta1
apiVersion: moco.cybozu.com/v1beta2
kind: BackupPolicy
metadata:
namespace: backup-tls
Expand Down

0 comments on commit 76a8e80

Please sign in to comment.