Skip to content

Commit d16b6e4

Browse files
Merge #122
122: feat: allow other ingress class than Nginx r=alallema a=Tchoupinax # Pull Request Hello :) ## What does this PR do? I test the ingress recently fixed (thank you for that) but I can't use it with traefik because of the ingressClassName set as default to `nginx`. I edited the chart to allow to dynamically change this value. :) I set nginx as the default value but in my opinion not className should be the default value. Anyway this improvement works for me. Have a nice day! Co-authored-by: Tchoupinax <[email protected]>
2 parents 6c56846 + f9c09e8 commit d16b6e4

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
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.35
5+
version: 0.1.36
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ metadata:
2525
{{- . | toYaml | nindent 4 }}
2626
{{- end }}
2727
spec:
28-
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1"}}
29-
ingressClassName: nginx
28+
{{- if and (.Capabilities.APIVersions.Has "networking.k8s.io/v1") (.Values.ingress.className) }}
29+
ingressClassName: {{ .Values.ingress.className }}
3030
{{- end }}
3131
{{- if .Values.ingress.tls }}
3232
tls:

charts/meilisearch/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ container:
5656

5757
ingress:
5858
enabled: false
59+
className: nginx
5960
annotations: {}
6061
# kubernetes.io/ingress.class: nginx
6162
path: /

0 commit comments

Comments
 (0)