Skip to content

Commit b038fa5

Browse files
committed
[ingress] allow api-version spec
1 parent a685664 commit b038fa5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

templates/server-ingress.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@
77
{{- $serviceName = printf "%s-%s" $serviceName "active" -}}
88
{{- end }}
99
{{- $servicePort := .Values.server.service.port -}}
10+
{{ if .Values.server.ingress.apiVersion }}
11+
apiVersion: {{ .Values.server.ingress.apiVersion }}
12+
{{ else }}
1013
{{ if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }}
1114
apiVersion: networking.k8s.io/v1beta1
1215
{{ else }}
1316
apiVersion: extensions/v1beta1
14-
{{ end }}
17+
{{ end }} {{- /* capabilities */}}
18+
{{ end }} {{- /* apiVersion */}}
1519
kind: Ingress
1620
metadata:
1721
name: {{ template "vault.fullname" . }}

0 commit comments

Comments
 (0)