From 13d214cce6bfdf945e26203df1d30a8088c208d0 Mon Sep 17 00:00:00 2001 From: Andrew Plummer Date: Wed, 21 Apr 2021 09:47:52 +0100 Subject: [PATCH] Chart NOTES.txt (#11) --- charts/flagsmith/Chart.yaml | 2 +- charts/flagsmith/templates/NOTES.txt | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 charts/flagsmith/templates/NOTES.txt diff --git a/charts/flagsmith/Chart.yaml b/charts/flagsmith/Chart.yaml index 87ab183..2f2267c 100644 --- a/charts/flagsmith/Chart.yaml +++ b/charts/flagsmith/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: flagsmith description: Flagsmith type: application -version: 0.1.6 +version: 0.1.7 appVersion: 2.6.0 dependencies: - name: postgresql diff --git a/charts/flagsmith/templates/NOTES.txt b/charts/flagsmith/templates/NOTES.txt new file mode 100644 index 0000000..c7f4f53 --- /dev/null +++ b/charts/flagsmith/templates/NOTES.txt @@ -0,0 +1,20 @@ +# Flagsmith pods are now starting in the cluster # + +See documentation at https://artifacthub.io/packages/helm/flagsmith/flagsmith/{{ .Chart.Version }} +for more configuration options. + +{{ if not (and .Values.ingress.frontend.enabled .Values.ingress.api.enabled) }} + +{{- $noIngressFor := (list) -}} +{{- if not .Values.ingress.api.enabled -}}{{- $noIngressFor = append $noIngressFor "api" -}}{{- end -}} +{{- if not .Values.ingress.frontend.enabled -}}{{- $noIngressFor = append $noIngressFor "frontend" -}}{{- end -}} +{{- $commaParts := (slice $noIngressFor 0 (sub (len $noIngressFor) 1)) -}} +{{- $andPart := (last $noIngressFor) -}} +{{- $stringParts := (compact (list (join ", " $commaParts) $andPart)) -}} +## Ingress not enabled for {{ join " and " $stringParts }} ## + +See documentation at https://artifacthub.io/packages/helm/flagsmith/flagsmith/{{ .Chart.Version }}#ingress-configuration +for information about how to gain web access to the application. + +{{- end }} +