feat: Define custom styles via values (#689)
* feat: define custom styles via values Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * Version Bump Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * Mount to correct server Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * fix(argo-cd): correct alphabetical place of new values Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> * fix(argo-cd): correct alphabetical place of new values in README Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
This commit is contained in:
parent
0919bbc116
commit
a70e1779af
7 changed files with 50 additions and 4 deletions
|
|
@ -151,4 +151,22 @@ Return the appropriate apiVersion for ingress
|
|||
{{- else -}}
|
||||
{{- print "networking.k8s.io/v1" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Argo Configuration Preset Values (Incluenced by Values configuration)
|
||||
*/}}
|
||||
{{- define "argo-cd.config.presets" -}}
|
||||
{{- if .Values.configs.styles }}
|
||||
ui.cssurl: "./custom/custom.styles.css"
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Merge Argo Configuration with Preset Configuration
|
||||
*/}}
|
||||
{{- define "argo-cd.config" -}}
|
||||
{{- if .Values.server.configEnabled -}}
|
||||
{{- toYaml (mergeOverwrite (default dict (fromYaml (include "argo-cd.config.presets" $))) .Values.server.config) }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue