Make CRDList lifecycle consistent with CRD

This commit is contained in:
Jordan Liggitt 2020-07-18 13:53:49 -04:00
parent f9ad7db9a6
commit 5678d40f76
2 changed files with 3 additions and 2 deletions

View File

@ -406,7 +406,8 @@ type CustomResourceDefinition struct {
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:prerelease-lifecycle-gen:introduced=1.7 // +k8s:prerelease-lifecycle-gen:introduced=1.7
// +k8s:prerelease-lifecycle-gen:deprecated=1.19 // +k8s:prerelease-lifecycle-gen:deprecated=1.16
// +k8s:prerelease-lifecycle-gen:removed=1.22
// +k8s:prerelease-lifecycle-gen:replacement=apiextensions.k8s.io,v1,CustomResourceDefinitionList // +k8s:prerelease-lifecycle-gen:replacement=apiextensions.k8s.io,v1,CustomResourceDefinitionList
// CustomResourceDefinitionList is a list of CustomResourceDefinition objects. // CustomResourceDefinitionList is a list of CustomResourceDefinition objects.

View File

@ -81,7 +81,7 @@ func (in *CustomResourceDefinitionList) APILifecycleIntroduced() (major, minor i
// APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. // APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison.
// It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. // It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor.
func (in *CustomResourceDefinitionList) APILifecycleDeprecated() (major, minor int) { func (in *CustomResourceDefinitionList) APILifecycleDeprecated() (major, minor int) {
return 1, 19 return 1, 16
} }
// APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type.