Skip to content

Commit

Permalink
Add fix for ESO
Browse files Browse the repository at this point in the history
  • Loading branch information
arya-harness committed May 9, 2024
1 parent 86bb54e commit f52839c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: library
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.3.35
version: 1.3.36

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
6 changes: 4 additions & 2 deletions src/common/templates/_eso-secrets-helper.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ USAGE:
{{- range $key, $value := .ctx.Values.secrets.default }}
{{- $hasAtleastOneSecret = true }}
{{- $pathTosSecret := printf "secrets.default.%s" $key }}
{{ $key }}: {{ include "harnesscommon.secrets.passwords.manage" (dict "secret" $.Chart.Name "key" $key "providedValues" (list $pathTosSecret ) "length" 10 "context" $) }}
{{- $defaultSecretName := dig "defaultSecretName" $.Chart.Name $.Values.secrets }}
{{ $key }}: {{ include "harnesscommon.secrets.passwords.manage" (dict "secret" $defaultSecretName "key" $key "providedValues" (list $pathTosSecret ) "length" 10 "context" $) }}
{{- end }}
{{- end }}

Expand Down Expand Up @@ -360,12 +361,13 @@ USAGE:
{{- end -}}
{{- end }}
{{- end }}
{{- $defaultSecretName := dig "defaultSecretName" $.Chart.Name $.Values.secrets }}
- name: all-secrets-mount-{{ $ind }}
projected:
sources:
{{- if gt (len $defaultSecretList) 0 }}
- secret:
name: {{ $.Chart.Name }}
name: {{ $defaultSecretName }}
items:
{{- range $key := $defaultSecretList }}
{{- $path := $key }}
Expand Down

0 comments on commit f52839c

Please sign in to comment.