Skip to content

Commit

Permalink
Merge pull request #592 from shunki-fujita/add_deprecatedversion_marker
Browse files Browse the repository at this point in the history
api: add deprecatedversion marker
  • Loading branch information
ymmt2005 authored Oct 25, 2023
2 parents 50fb210 + c47a8e8 commit 54db676
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions api/v1beta1/backuppolicy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ type BackupPolicySpec struct {
}

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

// 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 @@ -345,6 +345,7 @@ type ReconcileInfo struct {

// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:deprecatedversion
// +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: 3 additions & 1 deletion charts/moco/templates/generated/crds/moco_crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ spec:
singular: backuppolicy
scope: Namespaced
versions:
- name: v1beta1
- deprecated: true
name: v1beta1
schema:
openAPIV3Schema:
description: 'BackupPolicy is a namespaced resource that should '
Expand Down Expand Up @@ -4129,6 +4130,7 @@ spec:
- jsonPath: .status.backup.time
name: Last backup
type: string
deprecated: true
name: v1beta1
schema:
openAPIV3Schema:
Expand Down
3 changes: 2 additions & 1 deletion config/crd/bases/moco.cybozu.com_backuppolicies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ spec:
singular: backuppolicy
scope: Namespaced
versions:
- name: v1beta1
- deprecated: true
name: v1beta1
schema:
openAPIV3Schema:
description: 'BackupPolicy is a namespaced resource that should '
Expand Down
1 change: 1 addition & 0 deletions config/crd/bases/moco.cybozu.com_mysqlclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ spec:
- jsonPath: .status.backup.time
name: Last backup
type: string
deprecated: true
name: v1beta1
schema:
openAPIV3Schema:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ spec:
singular: backuppolicy
scope: Namespaced
versions:
- name: v1beta1
- deprecated: true
name: v1beta1
schema:
openAPIV3Schema:
description: 'BackupPolicy is a namespaced resource that should '
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ spec:
- jsonPath: .status.backup.time
name: Last backup
type: string
deprecated: true
name: v1beta1
schema:
openAPIV3Schema:
Expand Down

0 comments on commit 54db676

Please sign in to comment.