Skip to content

Commit 48359f4

Browse files
committed
Fixes syntax issue
1 parent 9d856f3 commit 48359f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/ingress.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{- if .Values.ingress.enabled }}
22
---
3-
{{- if ge .Capabilities.KubeVersion.Minor 22 }}
3+
{{- if gt .Capabilities.KubeVersion.Minor 21 }}
44
apiVersion: networking.k8s.io/v1
55
{{- else }}
66
apiVersion: networking.k8s.io/v1beta1
@@ -30,7 +30,7 @@ spec:
3030
paths:
3131
{{- range .paths }}
3232
- path: {{ default "/*" .path }}
33-
{{- if ge .Capabilities.KubeVersion.Minor 22 }}
33+
{{- if gt .Capabilities.KubeVersion.Minor 21 }}
3434
pathType: Prefix
3535
backend:
3636
service:
@@ -50,7 +50,7 @@ spec:
5050
http:
5151
paths:
5252
- path: "/"
53-
{{- if ge .Capabilities.KubeVersion.Minor 22 }}
53+
{{- if gt .Capabilities.KubeVersion.Minor 21 }}
5454
pathType: Prefix
5555
backend:
5656
service:

0 commit comments

Comments
 (0)