Skip to content

Commit 57143bb

Browse files
authored
Fix ingress does not contain a valid IngressClass
Add the ingressClassName field if the k8s version higher then 1.19-0. See: https://kubernetes.github.io/ingress-nginx/#what-is-an-ingressclass-and-why-is-it-important-for-users-of-ingress-nginx-controller-now
1 parent a1b6291 commit 57143bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

charts/meilisearch/templates/ingress.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ metadata:
2525
{{- . | toYaml | nindent 4 }}
2626
{{- end }}
2727
spec:
28+
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
29+
ingressClassName: nginx
30+
{{- end }}
2831
{{- if .Values.ingress.tls }}
2932
tls:
3033
{{- range .Values.ingress.tls }}

0 commit comments

Comments
 (0)