Skip to content

Commit

Permalink
helm: Remove unnecessary admissionregistration.k8s.io/v1beta1 (kubern…
Browse files Browse the repository at this point in the history
  • Loading branch information
johngmyers authored Jan 6, 2022
1 parent d84172e commit d6f4a60
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions helm/aws-load-balancer-controller/templates/webhook.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit d6f4a60

Please sign in to comment.