Skip to content

Commit

Permalink
Default to using current API version
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuru committed Mar 6, 2020
1 parent 1705589 commit f6c1e35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/keycloak-gatekeeper/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "keycloak-gatekeeper.fullname" . -}}
{{- $ingressPath := .Values.ingress.path -}}
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress" }}
{{- if or (.Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress") (not (.Capabilities.APIVersions.Has "extensions/v1beta1/Ingress")) }}
apiVersion: networking.k8s.io/v1beta1
{{- else }}
apiVersion: extensions/v1beta1
Expand Down

0 comments on commit f6c1e35

Please sign in to comment.