Skip to content

Commit be5c29d

Browse files
committed
Update ValidatingWebhook for Ingress to support --dry-run=server
1 parent 152364a commit be5c29d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

charts/ingress-nginx/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v1
22
name: ingress-nginx
3-
version: 2.7.0
3+
version: 2.7.1
44
appVersion: 0.33.0
55
home: https://github.com/kubernetes/ingress-nginx
66
description: Ingress controller for Kubernetes using NGINX as a reverse proxy and load balancer

charts/ingress-nginx/templates/admission-webhooks/validating-webhook.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- if .Values.controller.admissionWebhooks.enabled -}}
2-
apiVersion: admissionregistration.k8s.io/v1beta1
2+
apiVersion: admissionregistration.k8s.io/v1
33
kind: ValidatingWebhookConfiguration
44
metadata:
55
labels:
@@ -20,6 +20,10 @@ webhooks:
2020
resources:
2121
- ingresses
2222
failurePolicy: Fail
23+
sideEffects: None
24+
admissionReviewVersions:
25+
- v1
26+
- v1beta1
2327
clientConfig:
2428
service:
2529
namespace: {{ .Release.Namespace }}

0 commit comments

Comments
 (0)