From 0281fb4cec75e0c8c65b23d6a5d2025bf071e13e Mon Sep 17 00:00:00 2001 From: Martin Proffitt Date: Wed, 24 Apr 2024 16:38:52 +0200 Subject: [PATCH] allow setting the ingress class via `spec.ingressClassName` (#118) --- charts/localstack/templates/ingress.yaml | 3 +++ charts/localstack/values.yaml | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/charts/localstack/templates/ingress.yaml b/charts/localstack/templates/ingress.yaml index b7cae6f..054f206 100644 --- a/charts/localstack/templates/ingress.yaml +++ b/charts/localstack/templates/ingress.yaml @@ -22,6 +22,9 @@ metadata: {{- tpl (toYaml .) $ | nindent 4 }} {{- end }} spec: +{{- if .Values.ingress.ingressClassName }} + ingressClassName: {{ .Values.ingress.ingressClassName | quote }} +{{- end }} {{- if .Values.ingress.tls }} tls: {{- range .Values.ingress.tls }} diff --git a/charts/localstack/values.yaml b/charts/localstack/values.yaml index cd32e99..2720776 100644 --- a/charts/localstack/values.yaml +++ b/charts/localstack/values.yaml @@ -130,9 +130,9 @@ service: ingress: enabled: false annotations: {} - # Adjust the ingress class when not using nginx as incress controller - # kubernetes.io/ingress.class: nginx - # kubernetes.io/tls-acme: "true" + ## @param ingress.ingressClassName Set the name of the class to use + ## + ingressClassName: "" hosts: - host: chart-example.local paths: