Skip to content

Commit 224d5f8

Browse files
Merge #117
117: Fix ingress does not contain a valid IngressClass r=alallema a=beshkenadze 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 # Pull Request ## What does this PR do? Fixes #116 ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: Aleksandr Beshkenadze <[email protected]>
2 parents a1b6291 + 037fe96 commit 224d5f8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

charts/meilisearch/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
appVersion: "v0.27.1"
33
description: A Helm chart for the Meilisearch search engine
44
name: meilisearch
5-
version: 0.1.33
5+
version: 0.1.34
66
icon: https://res.cloudinary.com/meilisearch/image/upload/v1597822872/Logo/logo_img.svg
77
home: https://github.com/meilisearch/meilisearch-kubernetes/charts
88
maintainers:

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)