Skip to content

Commit

Permalink
support newer ingress apiVersion
Browse files Browse the repository at this point in the history
from K8s version 1.22 you can only access the ingress api via the stable
'networking.k8s.io/v1' API
  • Loading branch information
euven committed Aug 29, 2023
1 parent fbac879 commit d0f1234
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "tika-helm.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- if semverCompare ">=1.22-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1
{{- else -}}
apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1beta1
{{- end }}
kind: Ingress
metadata:
Expand Down

0 comments on commit d0f1234

Please sign in to comment.