Skip to content

Commit a912313

Browse files
Dont change user-config if secret exists
Signed-off-by: Arnob kumar saha <arnob@appscode.com>
1 parent 8d0e8c9 commit a912313

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

charts/ace/templates/platform/user-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
{{- $secretName := include "settings.platformUserConfigSecretName" . -}}
2+
{{- $secretNS := .Release.Namespace -}}
3+
{{- if not (lookup "v1" "Secret" $secretNS $secretName) }}
14
kind: Secret
25
apiVersion: v1
36
metadata:
@@ -16,3 +19,4 @@ stringData:
1619
FAVICON = `{{ .Values.branding.favicon }}`
1720
PRIMARY_COLOR = `{{ .Values.branding.primaryColor }}`
1821
SHOW_APP_TAG = {{ .Values.branding.showAppTag }}
22+
{{- end }}

0 commit comments

Comments
 (0)