Skip to content

Commit

Permalink
Merge pull request #4059 from sherifabdlnaby/dont-render-replicas-wit…
Browse files Browse the repository at this point in the history
…h-hpa

Do not render `.spec.replicas` if Autoscaling is Enabled
  • Loading branch information
k8s-ci-robot authored Feb 24, 2025
2 parents 526b830 + dc64725 commit 5a84850
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion helm/aws-load-balancer-controller/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: aws-load-balancer-controller
description: AWS Load Balancer Controller Helm chart for Kubernetes
version: 1.11.0
version: 1.11.1
appVersion: v2.11.0
home: https://github.com/aws/eks-charts
icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png
Expand Down
2 changes: 2 additions & 0 deletions helm/aws-load-balancer-controller/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ metadata:
labels:
{{- include "aws-load-balancer-controller.labels" . | nindent 4 }}
spec:
{{ if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{ end }}
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
selector:
matchLabels:
Expand Down

0 comments on commit 5a84850

Please sign in to comment.