Skip to content

Commit 5be5b30

Browse files
author
Shreya Anil Naik
committed
Enable setting custom objectSelector for webhook #650
1 parent 2f525fd commit 5be5b30

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
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.3.3
4+
version: 1.3.4
55
appVersion: v2.3.1
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/webhook.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ webhooks:
3737
operator: NotIn
3838
values:
3939
- {{ include "aws-load-balancer-controller.name" . }}
40+
{{- if .Values.objectSelector.matchExpressions }}
41+
{{- toYaml .Values.objectSelector.matchExpressions | nindent 4 }}
42+
{{- end }}
43+
{{- if .Values.objectSelector.matchLabels }}
44+
matchLabels:
45+
{{- toYaml .Values.objectSelector.matchLabels | nindent 6 }}
46+
{{- end }}
4047
rules:
4148
- apiGroups:
4249
- ""

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,3 +232,13 @@ backendSecurityGroup:
232232

233233
# disableRestrictedSecurityGroupRules specifies whether to disable creating port-range restricted security group rules for traffic
234234
disableRestrictedSecurityGroupRules:
235+
236+
#objectSelector for webhook
237+
objectSelector:
238+
matchExpressions:
239+
#- key: <key>
240+
#operator: <operator>
241+
#values:
242+
#- <value>
243+
matchLabels:
244+
#key: value

0 commit comments

Comments
 (0)