From 177f0ed1630b8bd759374ac5da10560fc6a297dd Mon Sep 17 00:00:00 2001 From: "Winston R. Milling" Date: Thu, 10 Feb 2022 17:16:35 -0600 Subject: [PATCH] feat: support ingressClassName in Helm Chart (#4844) Allow configuring the ingress class via a value. --- ci/helm-chart/Chart.yaml | 2 +- ci/helm-chart/templates/ingress.yaml | 3 +++ ci/helm-chart/values.yaml | 3 +-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ci/helm-chart/Chart.yaml b/ci/helm-chart/Chart.yaml index 233e71c5..c68fb2b2 100644 --- a/ci/helm-chart/Chart.yaml +++ b/ci/helm-chart/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 2.0.1 +version: 2.1.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/ci/helm-chart/templates/ingress.yaml b/ci/helm-chart/templates/ingress.yaml index d0a552cd..1da43207 100644 --- a/ci/helm-chart/templates/ingress.yaml +++ b/ci/helm-chart/templates/ingress.yaml @@ -18,6 +18,9 @@ metadata: {{- toYaml . | nindent 4 }} {{- end }} spec: + {{- if .Values.ingress.ingressClassName }} + ingressClassName: {{ .Values.ingress.ingressClassName }} + {{- end }} {{- if .Values.ingress.tls }} tls: {{- range .Values.ingress.tls }} diff --git a/ci/helm-chart/values.yaml b/ci/helm-chart/values.yaml index 9dfc9481..19c6a5ea 100644 --- a/ci/helm-chart/values.yaml +++ b/ci/helm-chart/values.yaml @@ -35,13 +35,12 @@ service: ingress: enabled: false #annotations: - # kubernetes.io/ingress.class: nginx # kubernetes.io/tls-acme: "true" #hosts: # - host: code-server.example.loc # paths: # - / - + ingressClassName: "" #tls: # - secretName: code-server # hosts: