Skip to content

Commit

Permalink
fix autoscaler api (#1718)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yisaer committed Feb 18, 2020
1 parent 1f90d44 commit 1138cf1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions manifests/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7060,10 +7060,6 @@ spec:
tidb:
description: TidbAutoScalerSpec describes the spec for tidb auto-scaling
properties:
MetricsTimeDuration:
description: MetricsTimeDuration describe the Time duration to be
queried in the Prometheus
type: string
maxReplicas:
description: maxReplicas is the upper limit for the number of replicas
to which the autoscaler can scale out. It cannot be less than
Expand All @@ -7082,6 +7078,10 @@ spec:
metric will be set to 80% average CPU utilization.
items: {}
type: array
metricsTimeDuration:
description: MetricsTimeDuration describe the Time duration to be
queried in the Prometheus
type: string
minReplicas:
description: minReplicas is the lower limit for the number of replicas
to which the autoscaler can scale down. It defaults to 1 pod.
Expand Down Expand Up @@ -7120,10 +7120,6 @@ spec:
tikv:
description: TikvAutoScalerSpec describes the spec for tikv auto-scaling
properties:
MetricsTimeDuration:
description: MetricsTimeDuration describe the Time duration to be
queried in the Prometheus
type: string
maxReplicas:
description: maxReplicas is the upper limit for the number of replicas
to which the autoscaler can scale out. It cannot be less than
Expand All @@ -7142,6 +7138,10 @@ spec:
metric will be set to 80% average CPU utilization.
items: {}
type: array
metricsTimeDuration:
description: MetricsTimeDuration describe the Time duration to be
queried in the Prometheus
type: string
minReplicas:
description: minReplicas is the lower limit for the number of replicas
to which the autoscaler can scale down. It defaults to 1 pod.
Expand Down
6 changes: 3 additions & 3 deletions pkg/apis/pingcap/v1alpha1/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/apis/pingcap/v1alpha1/tidbclusterautoscaler_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ type BasicAutoScalerSpec struct {

// MetricsTimeDuration describe the Time duration to be queried in the Prometheus
// +optional
MetricsTimeDuration *string `json:"MetricsTimeDuration,omitempty"`
MetricsTimeDuration *string `json:"metricsTimeDuration,omitempty"`

// ScaleOutThreshold describe the consecutive threshold for the auto-scaling,
// if the consecutive counts of the scale-out result in auto-scaling reach this number,
Expand Down

0 comments on commit 1138cf1

Please sign in to comment.