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 Jun 10, 2024
1 parent dcb4795 commit 9cfc2db
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 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
8 changes: 6 additions & 2 deletions charts/accurate/templates/generated/crds.yaml

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

9 changes: 7 additions & 2 deletions 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.

4 changes: 2 additions & 2 deletions docs/crd_subnamespace.md

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

0 comments on commit 9cfc2db

Please sign in to comment.