mirror of
https://github.com/kubernetes/client-go.git
synced 2025-07-31 14:54:27 +00:00
Refresh autogenerated files following the configurable tolerance updates.
Kubernetes-commit: ac107137ce85166464465ea3954092752ca88326
This commit is contained in:
parent
387edb880f
commit
1676beb32a
@ -20,6 +20,7 @@ package v2
|
||||
|
||||
import (
|
||||
autoscalingv2 "k8s.io/api/autoscaling/v2"
|
||||
resource "k8s.io/apimachinery/pkg/api/resource"
|
||||
)
|
||||
|
||||
// HPAScalingRulesApplyConfiguration represents a declarative configuration of the HPAScalingRules type for use
|
||||
@ -28,6 +29,7 @@ type HPAScalingRulesApplyConfiguration struct {
|
||||
StabilizationWindowSeconds *int32 `json:"stabilizationWindowSeconds,omitempty"`
|
||||
SelectPolicy *autoscalingv2.ScalingPolicySelect `json:"selectPolicy,omitempty"`
|
||||
Policies []HPAScalingPolicyApplyConfiguration `json:"policies,omitempty"`
|
||||
Tolerance *resource.Quantity `json:"tolerance,omitempty"`
|
||||
}
|
||||
|
||||
// HPAScalingRulesApplyConfiguration constructs a declarative configuration of the HPAScalingRules type for use with
|
||||
@ -64,3 +66,11 @@ func (b *HPAScalingRulesApplyConfiguration) WithPolicies(values ...*HPAScalingPo
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
// WithTolerance sets the Tolerance field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the Tolerance field is set to the value of the last call.
|
||||
func (b *HPAScalingRulesApplyConfiguration) WithTolerance(value resource.Quantity) *HPAScalingRulesApplyConfiguration {
|
||||
b.Tolerance = &value
|
||||
return b
|
||||
}
|
||||
|
@ -2934,6 +2934,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
- name: stabilizationWindowSeconds
|
||||
type:
|
||||
scalar: numeric
|
||||
- name: tolerance
|
||||
type:
|
||||
namedType: io.k8s.apimachinery.pkg.api.resource.Quantity
|
||||
- name: io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler
|
||||
map:
|
||||
fields:
|
||||
|
Loading…
Reference in New Issue
Block a user