Skip to content

Commit

Permalink
chore: add a note when a user is being explicit on deployment replicas
Browse files Browse the repository at this point in the history
Signed-off-by: Ardika Bagus <[email protected]>
  • Loading branch information
ardikabs committed Mar 7, 2024
1 parent 6df3eb0 commit 1719d81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions api/v1alpha1/shared_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,8 @@ const (
)

// KubernetesHorizontalPodAutoscalerSpec defines Kubernetes Horizontal Pod Autoscaler settings of Envoy Proxy Deployment.
// When HPA is enabled, it is recommended that the value in `KubernetesDeploymentSpec.replicas` be removed, otherwise
// Envoy Gateway will revert back to this value everytime reconciliation occurs.

Check failure on line 352 in api/v1alpha1/shared_types.go

View workflow job for this annotation

GitHub Actions / lint

everytime ==> every time
// See k8s.io.autoscaling.v2.HorizontalPodAutoScalerSpec.
//
// +kubebuilder:validation:XValidation:message="maxReplicas cannot be less than minReplicas",rule="!has(self.minReplicas) || self.maxReplicas >= self.minReplicas"
Expand Down
2 changes: 1 addition & 1 deletion site/content/en/latest/api/extension_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -1434,7 +1434,7 @@ _Appears in:_



KubernetesHorizontalPodAutoscalerSpec defines Kubernetes Horizontal Pod Autoscaler settings of Envoy Proxy Deployment. See k8s.io.autoscaling.v2.HorizontalPodAutoScalerSpec.
KubernetesHorizontalPodAutoscalerSpec defines Kubernetes Horizontal Pod Autoscaler settings of Envoy Proxy Deployment. When HPA is enabled, it is recommended that the value in `KubernetesDeploymentSpec.replicas` be removed, otherwise Envoy Gateway will revert back to this value everytime reconciliation occurs. See k8s.io.autoscaling.v2.HorizontalPodAutoScalerSpec.

Check failure on line 1437 in site/content/en/latest/api/extension_types.md

View workflow job for this annotation

GitHub Actions / lint

everytime ==> every time

_Appears in:_
- [EnvoyProxyKubernetesProvider](#envoyproxykubernetesprovider)
Expand Down

0 comments on commit 1719d81

Please sign in to comment.