updated vendor
This commit is contained in:
+9
-3
@@ -148,7 +148,7 @@ message HorizontalPodAutoscaler {
|
||||
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
||||
|
||||
// spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
|
||||
// +optional
|
||||
// +required
|
||||
optional HorizontalPodAutoscalerSpec spec = 2;
|
||||
|
||||
// status is the current information about the autoscaler.
|
||||
@@ -202,9 +202,15 @@ message HorizontalPodAutoscalerSpec {
|
||||
// metric is configured. Scaling is active as long as at least one metric value is
|
||||
// available.
|
||||
// +optional
|
||||
// +k8s:alpha(since: "1.36")=+k8s:optional
|
||||
// +k8s:alpha(since: "1.36")=+k8s:ifEnabled(HPAScaleToZero)=+k8s:minimum=0
|
||||
// +k8s:alpha(since: "1.36")=+k8s:ifDisabled(HPAScaleToZero)=+k8s:minimum=1
|
||||
optional int32 minReplicas = 2;
|
||||
|
||||
// maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
|
||||
// +required
|
||||
// +k8s:alpha(since: "1.36")=+k8s:required
|
||||
// +k8s:alpha(since: "1.36")=+k8s:minimum=1
|
||||
optional int32 maxReplicas = 3;
|
||||
|
||||
// targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods;
|
||||
@@ -472,9 +478,9 @@ message Scale {
|
||||
message ScaleSpec {
|
||||
// replicas is the desired number of instances for the scaled object.
|
||||
// +optional
|
||||
// +k8s:optional
|
||||
// +k8s:alpha(since: "1.36")=+k8s:optional
|
||||
// +default=0
|
||||
// +k8s:minimum=0
|
||||
// +k8s:alpha(since: "1.36")=+k8s:minimum=0
|
||||
optional int32 replicas = 1;
|
||||
}
|
||||
|
||||
|
||||
-64
@@ -1,64 +0,0 @@
|
||||
//go:build kubernetes_protomessage_one_more_release
|
||||
// +build kubernetes_protomessage_one_more_release
|
||||
|
||||
/*
|
||||
Copyright The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// Code generated by go-to-protobuf. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
func (*ContainerResourceMetricSource) ProtoMessage() {}
|
||||
|
||||
func (*ContainerResourceMetricStatus) ProtoMessage() {}
|
||||
|
||||
func (*CrossVersionObjectReference) ProtoMessage() {}
|
||||
|
||||
func (*ExternalMetricSource) ProtoMessage() {}
|
||||
|
||||
func (*ExternalMetricStatus) ProtoMessage() {}
|
||||
|
||||
func (*HorizontalPodAutoscaler) ProtoMessage() {}
|
||||
|
||||
func (*HorizontalPodAutoscalerCondition) ProtoMessage() {}
|
||||
|
||||
func (*HorizontalPodAutoscalerList) ProtoMessage() {}
|
||||
|
||||
func (*HorizontalPodAutoscalerSpec) ProtoMessage() {}
|
||||
|
||||
func (*HorizontalPodAutoscalerStatus) ProtoMessage() {}
|
||||
|
||||
func (*MetricSpec) ProtoMessage() {}
|
||||
|
||||
func (*MetricStatus) ProtoMessage() {}
|
||||
|
||||
func (*ObjectMetricSource) ProtoMessage() {}
|
||||
|
||||
func (*ObjectMetricStatus) ProtoMessage() {}
|
||||
|
||||
func (*PodsMetricSource) ProtoMessage() {}
|
||||
|
||||
func (*PodsMetricStatus) ProtoMessage() {}
|
||||
|
||||
func (*ResourceMetricSource) ProtoMessage() {}
|
||||
|
||||
func (*ResourceMetricStatus) ProtoMessage() {}
|
||||
|
||||
func (*Scale) ProtoMessage() {}
|
||||
|
||||
func (*ScaleSpec) ProtoMessage() {}
|
||||
|
||||
func (*ScaleStatus) ProtoMessage() {}
|
||||
+12
-4
@@ -47,9 +47,15 @@ type HorizontalPodAutoscalerSpec struct {
|
||||
// metric is configured. Scaling is active as long as at least one metric value is
|
||||
// available.
|
||||
// +optional
|
||||
// +k8s:alpha(since: "1.36")=+k8s:optional
|
||||
// +k8s:alpha(since: "1.36")=+k8s:ifEnabled(HPAScaleToZero)=+k8s:minimum=0
|
||||
// +k8s:alpha(since: "1.36")=+k8s:ifDisabled(HPAScaleToZero)=+k8s:minimum=1
|
||||
MinReplicas *int32 `json:"minReplicas,omitempty" protobuf:"varint,2,opt,name=minReplicas"`
|
||||
|
||||
// maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
|
||||
// +required
|
||||
// +k8s:alpha(since: "1.36")=+k8s:required
|
||||
// +k8s:alpha(since: "1.36")=+k8s:minimum=1
|
||||
MaxReplicas int32 `json:"maxReplicas" protobuf:"varint,3,opt,name=maxReplicas"`
|
||||
|
||||
// targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods;
|
||||
@@ -93,7 +99,7 @@ type HorizontalPodAutoscaler struct {
|
||||
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
||||
|
||||
// spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
|
||||
// +optional
|
||||
// +required
|
||||
Spec HorizontalPodAutoscalerSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
|
||||
|
||||
// status is the current information about the autoscaler.
|
||||
@@ -117,7 +123,7 @@ type HorizontalPodAutoscalerList struct {
|
||||
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
// +k8s:prerelease-lifecycle-gen:introduced=1.2
|
||||
// +k8s:isSubresource=/scale
|
||||
// +k8s:isSubresource="/scale"
|
||||
|
||||
// Scale represents a scaling request for a resource.
|
||||
type Scale struct {
|
||||
@@ -139,9 +145,9 @@ type Scale struct {
|
||||
type ScaleSpec struct {
|
||||
// replicas is the desired number of instances for the scaled object.
|
||||
// +optional
|
||||
// +k8s:optional
|
||||
// +k8s:alpha(since: "1.36")=+k8s:optional
|
||||
// +default=0
|
||||
// +k8s:minimum=0
|
||||
// +k8s:alpha(since: "1.36")=+k8s:minimum=0
|
||||
Replicas int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"`
|
||||
}
|
||||
|
||||
@@ -408,6 +414,8 @@ const (
|
||||
// ScalingLimited indicates that the calculated scale based on metrics would be above or
|
||||
// below the range for the HPA, and has thus been capped.
|
||||
ScalingLimited HorizontalPodAutoscalerConditionType = "ScalingLimited"
|
||||
// ScaledToZero indicates that the HPA controller scaled the workload to zero.
|
||||
ScaledToZero HorizontalPodAutoscalerConditionType = "ScaledToZero"
|
||||
)
|
||||
|
||||
// HorizontalPodAutoscalerCondition describes the state of
|
||||
|
||||
Reference in New Issue
Block a user