Skip to content

Commit 3d1f53d

Browse files
Change method of checking if networking.k8s.io/v1/Ingress is supported
Co-authored-by: Michael Dresser <[email protected]>
1 parent 9b68b67 commit 3d1f53d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cost-analyzer/templates/cost-analyzer-ingress-template.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{{- $ingressPaths := .Values.ingress.paths -}}
66
{{- $ingressPathType := .Values.ingress.pathType -}}
77
{{- $apiV1 := false -}}
8-
{{- if and (.Capabilities.APIVersions.Has "networking.k8s.io/v1") (semverCompare "^1.19-0" .Capabilities.KubeVersion.GitVersion) }}
8+
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
99
{{- $apiV1 = true -}}
1010
apiVersion: networking.k8s.io/v1
1111
{{ else if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }}

0 commit comments

Comments
 (0)