From f309d104e0d925ad9c06d917fc8c17967aef6bfc Mon Sep 17 00:00:00 2001 From: Matthias Neugebauer Date: Mon, 26 Sep 2022 15:09:57 +0200 Subject: [PATCH] Add option to set the ingress class name The ingressClassName configuration option should be used instead of custom ingress dependent annotations. This adds a new value to the ingress configuration to set this option. --- cockroachdb/templates/ingress.yaml | 3 +++ cockroachdb/values.yaml | 1 + 2 files changed, 4 insertions(+) diff --git a/cockroachdb/templates/ingress.yaml b/cockroachdb/templates/ingress.yaml index 2fa6373c..341f7434 100644 --- a/cockroachdb/templates/ingress.yaml +++ b/cockroachdb/templates/ingress.yaml @@ -32,6 +32,9 @@ metadata: {{- toYaml .Values.ingress.labels | nindent 4 }} {{- end }} spec: +{{- if .Values.ingress.className }} + ingressClassName: {{ .Values.ingress.className }} +{{- end }} rules: {{- if .Values.ingress.hosts }} {{- range $host := .Values.ingress.hosts }} diff --git a/cockroachdb/values.yaml b/cockroachdb/values.yaml index 0d92f417..69ed8977 100644 --- a/cockroachdb/values.yaml +++ b/cockroachdb/values.yaml @@ -308,6 +308,7 @@ ingress: annotations: {} # kubernetes.io/ingress.class: nginx # cert-manager.io/cluster-issuer: letsencrypt + # className: paths: [/] hosts: [] # - cockroachlabs.com