Ingress apiVersion
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
*.swp
|
||||
*.tar.gz
|
||||
@@ -1,2 +1,4 @@
|
||||
# mailman3-helm-chart
|
||||
Helm chart for Mailman3 deployment
|
||||
|
||||
Fork of [fw8/mailman3-helm-chart](https://github.com/fw8/mailman3-helm-chart).
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
{{- if .Values.ingress.enabled -}}
|
||||
{{- $fullName := include "mailman3.fullname" . -}}
|
||||
{{- $svcPort := .Values.service.port -}}
|
||||
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||
apiVersion: networking.k8s.io/v1beta1
|
||||
{{- else -}}
|
||||
apiVersion: extensions/v1beta1
|
||||
{{- end }}
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: {{ $fullName }}
|
||||
|
||||
Reference in New Issue
Block a user