Skip to content

Commit

Permalink
change order to match HPA
Browse files Browse the repository at this point in the history
Signed-off-by: Sina Siadat <[email protected]>
  • Loading branch information
siadat committed Oct 8, 2024
1 parent 13319db commit 23decc9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
20 changes: 10 additions & 10 deletions docs/api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -550,32 +550,32 @@ <h3 id="planetscale.com/v2.AutoscalerSpec">AutoscalerSpec
</tr>
<tr>
<td>
<code>behavior</code></br>
<code>metrics</code></br>
<em>
<a href="https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#horizontalpodautoscalerbehavior-v2-autoscaling">
Kubernetes autoscaling/v2.HorizontalPodAutoscalerBehavior
<a href="https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#metricspec-v2-autoscaling">
[]Kubernetes autoscaling/v2.MetricSpec
</a>
</em>
</td>
<td>
<em>(Optional)</em>
<p>Behavior specifies the scaling behavior of the target in both Up and Down directions.</p>
<p>Metrics is meant to provide a customizable way to configure HPA metrics.
currently the only supported custom metrics is type=Pod.
Use TargetCPUUtilization or TargetMemoryUtilization instead if scaling on these common resource metrics.</p>
</td>
</tr>
<tr>
<td>
<code>metrics</code></br>
<code>behavior</code></br>
<em>
<a href="https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#metricspec-v2-autoscaling">
[]Kubernetes autoscaling/v2.MetricSpec
<a href="https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#horizontalpodautoscalerbehavior-v2-autoscaling">
Kubernetes autoscaling/v2.HorizontalPodAutoscalerBehavior
</a>
</em>
</td>
<td>
<em>(Optional)</em>
<p>Metrics is meant to provide a customizable way to configure HPA metrics.
currently the only supported custom metrics is type=Pod.
Use TargetCPUUtilization or TargetMemoryUtilization instead if scaling on these common resource metrics.</p>
<p>Behavior specifies the scaling behavior of the target in both Up and Down directions.</p>
</td>
</tr>
</tbody>
Expand Down
8 changes: 4 additions & 4 deletions pkg/apis/planetscale/v2/vitesscell_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,16 +132,16 @@ type AutoscalerSpec struct {
// +kubebuilder:validation:Minimum=0
MaxReplicas int32 `json:"maxReplicas,omitempty"`

// Behavior specifies the scaling behavior of the target in both Up and Down directions.
// +optional
Behavior *autoscalingv2.HorizontalPodAutoscalerBehavior `json:"behavior,omitempty"`

// Metrics is meant to provide a customizable way to configure HPA metrics.
// currently the only supported custom metrics is type=Pod.
// Use TargetCPUUtilization or TargetMemoryUtilization instead if scaling on these common resource metrics.
// +listType=atomic
// +optional
Metrics []autoscalingv2.MetricSpec `json:"metrics,omitempty"`

// Behavior specifies the scaling behavior of the target in both Up and Down directions.
// +optional
Behavior *autoscalingv2.HorizontalPodAutoscalerBehavior `json:"behavior,omitempty"`
}

// VitessCellGatewaySpec specifies the per-cell deployment parameters for vtgate.
Expand Down
10 changes: 5 additions & 5 deletions pkg/apis/planetscale/v2/zz_generated.deepcopy.go

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

0 comments on commit 23decc9

Please sign in to comment.