From 3a7869a2af69a872ac69fcc7af5df81c3e25d8ec Mon Sep 17 00:00:00 2001 From: Mark Mercado Date: Sun, 18 Dec 2022 18:33:03 -0500 Subject: [PATCH] Add support for providing `ingressClassName` --- CHANGELOG.md | 1 + templates/ingress.yaml | 3 +++ values.yaml | 1 + 3 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a67685d..b9d6d79b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## In Development +* Add support for providing `ingressClassName`. (#336) (by @mamercad) * Temporary workaround for #311 to use previous bitnami index from: https://github.com/bitnami/charts/issues/10539 (#312 #318) (by @0xhaven) * Refactor label definitions to be more consistent by building labels and label selectors in partial helper templates. (#299) (by @cognifloyd) * Use the correct `apiVersion` for `Ingress` to add support for Kubernetes `v1.22`. (#301) (by @arms11) diff --git a/templates/ingress.yaml b/templates/ingress.yaml index 53e7caa3..cc25e61d 100644 --- a/templates/ingress.yaml +++ b/templates/ingress.yaml @@ -17,6 +17,9 @@ metadata: {{- toYaml .Values.ingress.annotations | nindent 4 }} {{- end }} spec: + {{- if .Values.ingress.ingressClassName }} + ingressClassName: {{ .Values.ingress.ingressClassName }} + {{- end }} rules: {{- range .Values.ingress.hosts }} - host: {{ .host }} diff --git a/values.yaml b/values.yaml index a66fdc5e..1caf1fdb 100644 --- a/values.yaml +++ b/values.yaml @@ -289,6 +289,7 @@ ingress: # - secretName: chart-example-tls # hosts: # - chart-example.test + # ingressClassName: nginx-ingress ## ## NOTE: there used to be a secrets.st2 section here. These values have moved into st2.* above. Please update your values.