Skip to content

Commit

Permalink
Change method of checking if networking.k8s.io/v1/Ingress is supported
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Dresser <[email protected]>
  • Loading branch information
kaelanspatel and michaelmdresser authored Jan 31, 2022
1 parent 9b68b67 commit 3d1f53d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{- $ingressPaths := .Values.ingress.paths -}}
{{- $ingressPathType := .Values.ingress.pathType -}}
{{- $apiV1 := false -}}
{{- if and (.Capabilities.APIVersions.Has "networking.k8s.io/v1") (semverCompare "^1.19-0" .Capabilities.KubeVersion.GitVersion) }}
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
{{- $apiV1 = true -}}
apiVersion: networking.k8s.io/v1
{{ else if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }}
Expand Down

0 comments on commit 3d1f53d

Please sign in to comment.