We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b68b67 commit 3d1f53dCopy full SHA for 3d1f53d
cost-analyzer/templates/cost-analyzer-ingress-template.yaml
@@ -5,7 +5,7 @@
5
{{- $ingressPaths := .Values.ingress.paths -}}
6
{{- $ingressPathType := .Values.ingress.pathType -}}
7
{{- $apiV1 := false -}}
8
-{{- 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" }}
9
{{- $apiV1 = true -}}
10
apiVersion: networking.k8s.io/v1
11
{{ else if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }}
0 commit comments