Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit b67b5f9

Browse files
authored
Use new ingress apiVersion if available (#11)
1 parent f5415ff commit b67b5f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/ingress.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
{{- if .Values.ingress.enabled }}
33
{{- $fullName := include "swagger-ui.fullname" . -}}
44
{{- $ingressPath := .Values.ingress.path -}}
5+
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }}
6+
apiVersion: networking.k8s.io/v1beta1
7+
{{ else }}
58
apiVersion: extensions/v1beta1
9+
{{ end -}}
610
kind: Ingress
711
metadata:
812
name: {{ template "swagger-ui.fullname" . }}

0 commit comments

Comments
 (0)