File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 1
1
{{- if .Values.ingress.enabled }}
2
2
---
3
+ {{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1" }}
4
+ apiVersion : networking.k8s.io/v1
5
+ {{- else }}
3
6
apiVersion : networking.k8s.io/v1beta1
7
+ {{- end }}
4
8
kind : Ingress
5
9
metadata :
6
10
name : {{ .Release.Name }}-st2web-ingress
26
30
paths :
27
31
{{- range .paths }}
28
32
- path : {{ default "/*" .path }}
33
+ {{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1" }}
34
+ pathType : Prefix
35
+ backend :
36
+ service :
37
+ name : {{ .serviceName }}
38
+ port :
39
+ number : {{ .servicePort }}
40
+ {{- else }}
29
41
backend :
30
42
serviceName : {{ .serviceName }}
31
43
servicePort : {{ .servicePort }}
44
+ {{- end }}
32
45
{{- end }}
33
46
{{- else }}
34
47
{{- if required "Missing context '.Values.st2web.service.hostname'!" .Values.st2web.service.hostname }}
37
50
http :
38
51
paths :
39
52
- path : " /"
53
+ {{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1" }}
54
+ pathType : Prefix
55
+ backend :
56
+ service :
57
+ name : {{ .Release.Name }}-st2web
58
+ port :
59
+ number : 80
60
+ {{- else }}
40
61
backend :
41
62
serviceName : {{ .Release.Name }}-st2web
42
63
servicePort : 80
64
+ {{- end }}
43
65
{{- end }}
44
66
{{- if .Values.ingress.tls }}
45
67
tls :
You can’t perform that action at this time.
0 commit comments