cleanup FederatedHPA API
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
This commit is contained in:
parent
fb317bd905
commit
658eec642e
|
|
@ -61,7 +61,7 @@ spec:
|
||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
spec:
|
spec:
|
||||||
description: Spec is the specification of the FederatedHPASpec.
|
description: Spec is the specification of the FederatedHPA.
|
||||||
properties:
|
properties:
|
||||||
behavior:
|
behavior:
|
||||||
description: Behavior configures the scaling behavior of the target
|
description: Behavior configures the scaling behavior of the target
|
||||||
|
|
@ -179,7 +179,7 @@ spec:
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
maxReplicas:
|
maxReplicas:
|
||||||
description: maxReplicas is the upper limit for the number of replicas
|
description: MaxReplicas is the upper limit for the number of replicas
|
||||||
to which the autoscaler can scale up. It cannot be less that minReplicas.
|
to which the autoscaler can scale up. It cannot be less that minReplicas.
|
||||||
format: int32
|
format: int32
|
||||||
type: integer
|
type: integer
|
||||||
|
|
@ -657,11 +657,8 @@ spec:
|
||||||
type: object
|
type: object
|
||||||
type: array
|
type: array
|
||||||
minReplicas:
|
minReplicas:
|
||||||
description: minReplicas is the lower limit for the number of replicas
|
description: MinReplicas is the lower limit for the number of replicas
|
||||||
to which the autoscaler can scale down. It defaults to 1 pod. minReplicas
|
to which the autoscaler can scale down. It defaults to 1 pod.
|
||||||
is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled
|
|
||||||
and at least one Object or External metric is configured. Scaling
|
|
||||||
is active as long as at least one metric value is available.
|
|
||||||
format: int32
|
format: int32
|
||||||
type: integer
|
type: integer
|
||||||
scaleTargetRef:
|
scaleTargetRef:
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ type FederatedHPA struct {
|
||||||
metav1.TypeMeta `json:",inline"`
|
metav1.TypeMeta `json:",inline"`
|
||||||
metav1.ObjectMeta `json:"metadata,omitempty"`
|
metav1.ObjectMeta `json:"metadata,omitempty"`
|
||||||
|
|
||||||
// Spec is the specification of the FederatedHPASpec.
|
// Spec is the specification of the FederatedHPA.
|
||||||
// +required
|
// +required
|
||||||
Spec FederatedHPASpec `json:"spec"`
|
Spec FederatedHPASpec `json:"spec"`
|
||||||
|
|
||||||
|
|
@ -41,17 +41,16 @@ type FederatedHPASpec struct {
|
||||||
// +required
|
// +required
|
||||||
ScaleTargetRef autoscalingv2.CrossVersionObjectReference `json:"scaleTargetRef"`
|
ScaleTargetRef autoscalingv2.CrossVersionObjectReference `json:"scaleTargetRef"`
|
||||||
|
|
||||||
// minReplicas is the lower limit for the number of replicas to which the autoscaler
|
// MinReplicas is the lower limit for the number of replicas to which the
|
||||||
// can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the
|
// autoscaler can scale down.
|
||||||
// alpha feature gate HPAScaleToZero is enabled and at least one Object or External
|
// It defaults to 1 pod.
|
||||||
// metric is configured. Scaling is active as long as at least one metric value is
|
|
||||||
// available.
|
|
||||||
// +optional
|
// +optional
|
||||||
MinReplicas *int32 `json:"minReplicas,omitempty" protobuf:"varint,2,opt,name=minReplicas"`
|
MinReplicas *int32 `json:"minReplicas,omitempty"`
|
||||||
|
|
||||||
// maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up.
|
// MaxReplicas is the upper limit for the number of replicas to which the
|
||||||
|
// autoscaler can scale up.
|
||||||
// It cannot be less that minReplicas.
|
// It cannot be less that minReplicas.
|
||||||
MaxReplicas int32 `json:"maxReplicas" protobuf:"varint,3,opt,name=maxReplicas"`
|
MaxReplicas int32 `json:"maxReplicas"`
|
||||||
|
|
||||||
// Metrics contains the specifications for which to use to calculate the
|
// Metrics contains the specifications for which to use to calculate the
|
||||||
// desired replica count (the maximum replica count across all metrics will
|
// desired replica count (the maximum replica count across all metrics will
|
||||||
|
|
|
||||||
|
|
@ -856,7 +856,7 @@ func schema_pkg_apis_autoscaling_v1alpha1_FederatedHPA(ref common.ReferenceCallb
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
Description: "Spec is the specification of the FederatedHPASpec.",
|
Description: "Spec is the specification of the FederatedHPA.",
|
||||||
Default: map[string]interface{}{},
|
Default: map[string]interface{}{},
|
||||||
Ref: ref("github.com/karmada-io/karmada/pkg/apis/autoscaling/v1alpha1.FederatedHPASpec"),
|
Ref: ref("github.com/karmada-io/karmada/pkg/apis/autoscaling/v1alpha1.FederatedHPASpec"),
|
||||||
},
|
},
|
||||||
|
|
@ -942,14 +942,14 @@ func schema_pkg_apis_autoscaling_v1alpha1_FederatedHPASpec(ref common.ReferenceC
|
||||||
},
|
},
|
||||||
"minReplicas": {
|
"minReplicas": {
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
Description: "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.",
|
Description: "MinReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod.",
|
||||||
Type: []string{"integer"},
|
Type: []string{"integer"},
|
||||||
Format: "int32",
|
Format: "int32",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"maxReplicas": {
|
"maxReplicas": {
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
Description: "maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.",
|
Description: "MaxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.",
|
||||||
Default: 0,
|
Default: 0,
|
||||||
Type: []string{"integer"},
|
Type: []string{"integer"},
|
||||||
Format: "int32",
|
Format: "int32",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue