Merge pull request #106887 from liggitt/hpa-beta
Direct v2betaX users to migrate to HPA v2
This commit is contained in:
		| @@ -449,7 +449,7 @@ type ExternalMetricStatus 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.8 | // +k8s:prerelease-lifecycle-gen:introduced=1.8 | ||||||
| // +k8s:prerelease-lifecycle-gen:deprecated=1.22 | // +k8s:prerelease-lifecycle-gen:deprecated=1.22 | ||||||
| // +k8s:prerelease-lifecycle-gen:replacement=autoscaling,v2beta2,HorizontalPodAutoscaler | // +k8s:prerelease-lifecycle-gen:replacement=autoscaling,v2,HorizontalPodAutoscaler | ||||||
|  |  | ||||||
| // HorizontalPodAutoscaler is the configuration for a horizontal pod | // HorizontalPodAutoscaler is the configuration for a horizontal pod | ||||||
| // autoscaler, which automatically manages the replica count of any resource | // autoscaler, which automatically manages the replica count of any resource | ||||||
|   | |||||||
| @@ -40,7 +40,7 @@ func (in *HorizontalPodAutoscaler) APILifecycleDeprecated() (major, minor int) { | |||||||
| // 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. | ||||||
| // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=<group>,<version>,<kind>" tags in types.go. | // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=<group>,<version>,<kind>" tags in types.go. | ||||||
| func (in *HorizontalPodAutoscaler) APILifecycleReplacement() schema.GroupVersionKind { | func (in *HorizontalPodAutoscaler) APILifecycleReplacement() schema.GroupVersionKind { | ||||||
| 	return schema.GroupVersionKind{Group: "autoscaling", Version: "v2beta2", Kind: "HorizontalPodAutoscaler"} | 	return schema.GroupVersionKind{Group: "autoscaling", Version: "v2", Kind: "HorizontalPodAutoscaler"} | ||||||
| } | } | ||||||
|  |  | ||||||
| // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. | // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. | ||||||
|   | |||||||
| @@ -28,6 +28,7 @@ import ( | |||||||
| // +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.12 | // +k8s:prerelease-lifecycle-gen:introduced=1.12 | ||||||
| // +k8s:prerelease-lifecycle-gen:deprecated=1.23 | // +k8s:prerelease-lifecycle-gen:deprecated=1.23 | ||||||
|  | // +k8s:prerelease-lifecycle-gen:replacement=autoscaling,v2,HorizontalPodAutoscaler | ||||||
|  |  | ||||||
| // HorizontalPodAutoscaler is the configuration for a horizontal pod | // HorizontalPodAutoscaler is the configuration for a horizontal pod | ||||||
| // autoscaler, which automatically manages the replica count of any resource | // autoscaler, which automatically manages the replica count of any resource | ||||||
|   | |||||||
| @@ -21,6 +21,10 @@ limitations under the License. | |||||||
|  |  | ||||||
| package v2beta2 | package v2beta2 | ||||||
|  |  | ||||||
|  | import ( | ||||||
|  | 	schema "k8s.io/apimachinery/pkg/runtime/schema" | ||||||
|  | ) | ||||||
|  |  | ||||||
| // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. | // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. | ||||||
| // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. | // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. | ||||||
| func (in *HorizontalPodAutoscaler) APILifecycleIntroduced() (major, minor int) { | func (in *HorizontalPodAutoscaler) APILifecycleIntroduced() (major, minor int) { | ||||||
| @@ -33,6 +37,12 @@ func (in *HorizontalPodAutoscaler) APILifecycleDeprecated() (major, minor int) { | |||||||
| 	return 1, 23 | 	return 1, 23 | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. | ||||||
|  | // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=<group>,<version>,<kind>" tags in types.go. | ||||||
|  | func (in *HorizontalPodAutoscaler) APILifecycleReplacement() schema.GroupVersionKind { | ||||||
|  | 	return schema.GroupVersionKind{Group: "autoscaling", Version: "v2", Kind: "HorizontalPodAutoscaler"} | ||||||
|  | } | ||||||
|  |  | ||||||
| // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. | // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. | ||||||
| // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or  "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. | // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or  "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. | ||||||
| func (in *HorizontalPodAutoscaler) APILifecycleRemoved() (major, minor int) { | func (in *HorizontalPodAutoscaler) APILifecycleRemoved() (major, minor int) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Kubernetes Prow Robot
					Kubernetes Prow Robot