Fix helm chart for k8s 1.21->1.22 (#1641)
This commit is contained in:
parent
a67305a28e
commit
8125814eed
1 changed files with 5 additions and 5 deletions
|
@ -1,11 +1,11 @@
|
||||||
{{- if .Values.ingress.enabled -}}
|
{{- if .Values.ingress.enabled -}}
|
||||||
{{- $fullName := include "kafka-ui.fullname" . -}}
|
{{- $fullName := include "kafka-ui.fullname" . -}}
|
||||||
{{- $svcPort := .Values.service.port -}}
|
{{- $svcPort := .Values.service.port -}}
|
||||||
{{- if semverCompare ">=1.22-0" .Capabilities.KubeVersion.GitVersion -}}
|
{{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1" }}
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
{{- else if $.Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }}
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
{{- else -}}
|
{{- else }}
|
||||||
apiVersion: extensions/v1beta1
|
apiVersion: extensions/v1beta1
|
||||||
{{- end }}
|
{{- end }}
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
|
@ -30,7 +30,7 @@ spec:
|
||||||
rules:
|
rules:
|
||||||
- http:
|
- http:
|
||||||
paths:
|
paths:
|
||||||
{{- if semverCompare ">=1.22-0" .Capabilities.KubeVersion.GitVersion -}}
|
{{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1" -}}
|
||||||
{{- range .Values.ingress.precedingPaths }}
|
{{- range .Values.ingress.precedingPaths }}
|
||||||
- path: {{ .path }}
|
- path: {{ .path }}
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
|
@ -84,4 +84,4 @@ spec:
|
||||||
host: {{ .Values.ingress.host }}
|
host: {{ .Values.ingress.host }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue