From cbe710e9dd370a5a93c99470e1cca7f95dbc61a5 Mon Sep 17 00:00:00 2001 From: Max <1676208+maxirus@users.noreply.github.com> Date: Tue, 24 May 2022 17:09:21 -0400 Subject: [PATCH] Fixing Ingress support for k8s >v1.18 --- charts/focalboard/Chart.yaml | 2 +- charts/focalboard/templates/ingress.yaml | 3 +++ charts/focalboard/values.yaml | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/focalboard/Chart.yaml b/charts/focalboard/Chart.yaml index 21abd355..203d418b 100644 --- a/charts/focalboard/Chart.yaml +++ b/charts/focalboard/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: focalboard description: Focalboard Server type: application -version: 0.5.0 +version: 0.5.1 appVersion: "0.6.7" keywords: - focalboard diff --git a/charts/focalboard/templates/ingress.yaml b/charts/focalboard/templates/ingress.yaml index 8a2c30cc..e3057777 100644 --- a/charts/focalboard/templates/ingress.yaml +++ b/charts/focalboard/templates/ingress.yaml @@ -18,6 +18,9 @@ metadata: {{- toYaml . | nindent 4 }} {{- end }} spec: + {{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }} + ingressClassName: {{ .Values.ingress.className }} + {{- end }} {{- if .Values.ingress.tls }} tls: {{- range .Values.ingress.tls }} diff --git a/charts/focalboard/values.yaml b/charts/focalboard/values.yaml index 3077d3be..bb7ece9d 100644 --- a/charts/focalboard/values.yaml +++ b/charts/focalboard/values.yaml @@ -43,6 +43,7 @@ service: ingress: enabled: false + className: "" annotations: {} # kubernetes.io/ingress.class: nginx # kubernetes.io/tls-acme: "true"