fix(base): add valuesFrom support
This commit is contained in:
parent
a27e6c489e
commit
8ef1a469bf
3 changed files with 13 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
commons:
|
||||
masterPassword:
|
||||
# -- needed, but could be set with componentCommons.helm.release.valuesFrom
|
||||
# masterPassword:
|
||||
auth:
|
||||
enabled: false
|
||||
type: "authentik"
|
||||
|
|
|
@ -28,6 +28,12 @@ spec:
|
|||
optional: true
|
||||
valuesKey: init
|
||||
targetPath: init.version
|
||||
{{- with $.Values.componentCommons.helm.release.valuesFrom }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- with $config.valuesFrom }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
values:
|
||||
{{- $config.values | default (dict) | mergeOverwrite (dict "commons" $.Values.commons "global" $.Values.global) | toYaml | nindent 4 }}
|
||||
{{- end }}
|
||||
|
|
|
@ -10,4 +10,9 @@ commons:
|
|||
test: {}
|
||||
upgrade: {}
|
||||
|
||||
componentCommons:
|
||||
helm:
|
||||
release:
|
||||
valuesFrom: []
|
||||
|
||||
components: {}
|
||||
|
|
Loading…
Add table
Reference in a new issue