Skip to content

Commit

Permalink
chore(base-cluster): mustMerge* is the safer option
Browse files Browse the repository at this point in the history
  • Loading branch information
cwrau committed Jun 28, 2024
1 parent b77d4c7 commit 1df0475
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/base-cluster/templates/global/priorityClasses.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- $defaultClasses := dict "cluster-components" (dict "value" 500000000) "monitoring-components" (dict "value" 250000000) -}}
{{- $priorityClasses := merge $defaultClasses .Values.global.priorityClasses -}}
{{- $priorityClasses := mustMerge $defaultClasses .Values.global.priorityClasses -}}
{{- range $priorityClassName, $priorityClass := $priorityClasses }}
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ type: Opaque
data:
username: {{ "admin" | b64enc }}
# This might change on every `template` call, this can be ignored
password: {{ include "common.secrets.passwords.manage" (dict "secret" $name "length" 40 "strong" false "key" "password" "providedValues" (list "monitoring.grafana.adminPassword") "context" (dict "Values" .Values "Release" ((dict "IsUpgrade" false "IsInstall" true "Namespace" "monitoring") | mergeOverwrite (deepCopy .Release)))) }}
password: {{ include "common.secrets.passwords.manage" (dict "secret" $name "length" 40 "strong" false "key" "password" "providedValues" (list "monitoring.grafana.adminPassword") "context" (dict "Values" .Values "Release" ((dict "IsUpgrade" false "IsInstall" true "Namespace" "monitoring") | mustMergeOverwrite (deepCopy .Release)))) }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ metadata:
type: Opaque
data:
# This might change on every `template` call, this can be ignored
cookie-secret: {{ include "common.secrets.passwords.manage" (dict "secret" $name "key" "cookie-secret" "length" 32 "strong" true "providedValues" (list "global.authentication.oauthProxy.cookieSecret") "context" (dict "Values" .Values "Release" ((dict "IsUpgrade" false "IsInstall" true "Namespace" "monitoring") | mergeOverwrite (deepCopy .Release)))) }}
cookie-secret: {{ include "common.secrets.passwords.manage" (dict "secret" $name "key" "cookie-secret" "length" 32 "strong" true "providedValues" (list "global.authentication.oauthProxy.cookieSecret") "context" (dict "Values" .Values "Release" ((dict "IsUpgrade" false "IsInstall" true "Namespace" "monitoring") | mustMergeOverwrite (deepCopy .Release)))) }}
client-id: {{ $.Values.global.authentication.config.clientId | b64enc | quote }}
client-secret: {{ $.Values.global.authentication.config.clientSecret | b64enc | quote }}
{{- end }}

0 comments on commit 1df0475

Please sign in to comment.