Drop support for K8s <1.14

Fixes #12
This commit is contained in:
Alexander Olofsson 2021-09-03 09:35:54 +02:00
parent ec069bb8cf
commit 8cc046b346
No known key found for this signature in database
GPG key ID: D439C9470CB04C73
6 changed files with 18 additions and 18 deletions

View file

@ -1,10 +1,10 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "element-web.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1
{{- else -}}
apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1beta1
{{- end }}
kind: Ingress
metadata:

View file

@ -1,10 +1,10 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "funkwhale.fullname" . -}}
---
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1
{{- else -}}
apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1beta1
{{- end }}
kind: Ingress
metadata:

View file

@ -1,10 +1,10 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "matrix-media-repo.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1
{{- else -}}
apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1beta1
{{- end }}
kind: Ingress
metadata:

View file

@ -1,10 +1,10 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "matrix-synapse.fullname" . -}}
{{- $wkName := include "matrix-synapse.externalname" (dict "global" . "external" "wellknown-lighttpd") -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1
{{- else -}}
apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1beta1
{{- end }}
kind: Ingress
metadata:

View file

@ -1,9 +1,9 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "netbox.fullname" . -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1
{{- else -}}
apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1beta1
{{- end }}
kind: Ingress
metadata:

View file

@ -1,9 +1,9 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "radosgw.fullname" . -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1
{{- else -}}
apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1beta1
{{- end }}
kind: Ingress
metadata: