diff --git a/helm/aws-load-balancer-controller/templates/webhook.yaml b/helm/aws-load-balancer-controller/templates/webhook.yaml index a03932830..82b15552f 100644 --- a/helm/aws-load-balancer-controller/templates/webhook.yaml +++ b/helm/aws-load-balancer-controller/templates/webhook.yaml @@ -1,10 +1,6 @@ {{ $tls := fromYaml ( include "aws-load-balancer-controller.webhook-certs" . ) }} --- -{{- if .Capabilities.APIVersions.Has "admissionregistration.k8s.io/v1" }} apiVersion: admissionregistration.k8s.io/v1 -{{- else }} -apiVersion: admissionregistration.k8s.io/v1beta1 -{{- end }} kind: MutatingWebhookConfiguration metadata: {{- if $.Values.enableCertManager }} @@ -76,11 +72,7 @@ webhooks: - targetgroupbindings sideEffects: None --- -{{- if .Capabilities.APIVersions.Has "admissionregistration.k8s.io/v1" }} apiVersion: admissionregistration.k8s.io/v1 -{{- else }} -apiVersion: admissionregistration.k8s.io/v1beta1 -{{- end }} kind: ValidatingWebhookConfiguration metadata: {{- if $.Values.enableCertManager }}