Skip to content

Commit 04cee68

Browse files
Do not render .spec.replicas if HPA Is enabled
1 parent 526b830 commit 04cee68

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

helm/aws-load-balancer-controller/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: aws-load-balancer-controller
33
description: AWS Load Balancer Controller Helm chart for Kubernetes
4-
version: 1.11.0
4+
version: 1.11.1
55
appVersion: v2.11.0
66
home: https://github.com/aws/eks-charts
77
icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png

helm/aws-load-balancer-controller/templates/deployment.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ metadata:
1010
labels:
1111
{{- include "aws-load-balancer-controller.labels" . | nindent 4 }}
1212
spec:
13+
{{ if not .Values.autoscaling.enabled }}
1314
replicas: {{ .Values.replicaCount }}
15+
{{ end }}
1416
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
1517
selector:
1618
matchLabels:
@@ -68,7 +70,7 @@ spec:
6870
{{- end }}
6971
{{- $region := tpl (default "" .Values.region) . }}
7072
{{- if $region }}
71-
- --aws-region={{ $region }}
73+
- --aws-region={{ .Values.region }}
7274
{{- end }}
7375
{{- $vpcID := tpl (default "" .Values.vpcId) . }}
7476
{{- if $vpcID }}
@@ -173,9 +175,6 @@ spec:
173175
{{- if .Values.loadBalancerClass }}
174176
- --load-balancer-class={{ .Values.loadBalancerClass }}
175177
{{- end }}
176-
{{- if .Values.vpcTags }}
177-
- --aws-vpc-tags={{ include "aws-load-balancer-controller.convertMapToCsv" .Values.vpcTags | trimSuffix "," }}
178-
{{- end }}
179178
{{- if or .Values.env .Values.envSecretName }}
180179
env:
181180
{{- if .Values.env}}

0 commit comments

Comments
 (0)