mirror of
https://github.com/wahyd4/charts.git
synced 2026-08-25 13:06:08 +10:00
[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:
@@ -20,4 +20,4 @@ sources:
|
||||
- https://github.com/bitnami/charts
|
||||
- http://www.bitnami.com/
|
||||
type: library
|
||||
version: 1.3.5
|
||||
version: 1.3.6
|
||||
|
||||
@@ -21,7 +21,9 @@ Params:
|
||||
|
||||
{{- with .existingSecret -}}
|
||||
{{- if not (typeIs "string" .) -}}
|
||||
{{- $name = .name -}}
|
||||
{{- with .name -}}
|
||||
{{- $name = . -}}
|
||||
{{- end -}}
|
||||
{{- else -}}
|
||||
{{- $name = . -}}
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user