Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api: add deprecatedversion marker #592

Merged
merged 1 commit into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -4095,6 +4096,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