[bitnami/common] same behavior with empty string when the secret obje… (#5057)

* [bitnami/common] same behavior with empty string when the secret object is used.

When you pass in an empty string as the existingSecret the with statement ensures that the default name is used.
If you pass in the new existingSecret object which is a dict it uses the empty  string and not use the emptyString as reference to use the default string.
Implementing another with statement ensures that the variable is set.

* {bitnami/common] Fix the documenation fo supportsHelmVersion

* [bitnami/common] Bump version in Chart.yaml

* [bitnami/common] Bump the Chart.yaml version

* fix indentation and whitespace
This commit is contained in:
Marcel Fest
2021-01-18 10:09:26 +01:00
committed by GitHub
parent 3035aacae5
commit 0bae2bbb9b
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -20,4 +20,4 @@ sources:
- https://github.com/bitnami/charts
- http://www.bitnami.com/
type: library
version: 1.3.5
version: 1.3.6
+3 -1
View File
@@ -21,7 +21,9 @@ Params:
{{- with .existingSecret -}}
{{- if not (typeIs "string" .) -}}
{{- $name = .name -}}
{{- with .name -}}
{{- $name = . -}}
{{- end -}}
{{- else -}}
{{- $name = . -}}
{{- end -}}