Skip to content

Commit

Permalink
chore: deprecate v1 SubNamespace API
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgb committed May 15, 2024
1 parent 9aab6be commit 6d66e89
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions api/accurate/v1/subnamespace_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ type SubNamespaceSpec struct {
}

//+kubebuilder:object:root=true
//+kubebuilder:deprecatedversion:warning="The v1 version of SubNamespace has been deprecated and will be removed in a future release of the API. Please upgrade."

// SubNamespace is the Schema for the subnamespaces API
// Deprecated: This type will be removed in one of the next releases.
type SubNamespace struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand All @@ -46,6 +48,7 @@ type SubNamespace struct {
//+kubebuilder:object:root=true

// SubNamespaceList contains a list of SubNamespace
// Deprecated: This type will be removed in one of the next releases.
type SubNamespaceList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Expand Down
4 changes: 3 additions & 1 deletion charts/accurate/templates/generated/crds.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion config/crd/bases/accurate.cybozu.com_subnamespaces.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6d66e89

Please sign in to comment.