Skip to content

Commit 35dc5f6

Browse files
authored
fix(helm): fix objectSelector.matchExpressions indent in webhook.yaml (#4480)
* Add dummy object selector to tests * fix `objectSelector.matchExpressions` indent * Comment out objectSelector in test.yaml Comment out example objectSelector configuration. * Comment out example objectSelector in test.yaml Commented out example objectSelector configuration.
1 parent 38b81a3 commit 35dc5f6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ webhooks:
8080
{{ end }}
8181
objectSelector:
8282
matchExpressions:
83-
- key: app.kubernetes.io/name
84-
operator: NotIn
85-
values:
86-
- {{ include "aws-load-balancer-controller.name" . }}
83+
- key: app.kubernetes.io/name
84+
operator: NotIn
85+
values:
86+
- {{ include "aws-load-balancer-controller.name" . }}
8787
{{- if .Values.objectSelector.matchExpressions }}
8888
{{- toYaml .Values.objectSelector.matchExpressions | nindent 4 }}
8989
{{- end }}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,4 +356,4 @@ serviceMutatorWebhookConfig:
356356

357357
podMutatorWebhookConfig:
358358
# whether or not to fail the pod creation if the webhook fails
359-
failurePolicy: Ignore
359+
failurePolicy: Ignore

0 commit comments

Comments
 (0)