diff --git a/stable/deployment/Chart.yaml b/stable/deployment/Chart.yaml index 0601280..99c9177 100644 --- a/stable/deployment/Chart.yaml +++ b/stable/deployment/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: deployment -version: 1.8.5 +version: 1.8.6 description: Typical microservice chart. Supports Ingress controller, horizontal-scalable containers type: application dependencies: diff --git a/stable/deployment/templates/external-secret.yaml b/stable/deployment/templates/external-secret.yaml index 3a38a64..e625489 100644 --- a/stable/deployment/templates/external-secret.yaml +++ b/stable/deployment/templates/external-secret.yaml @@ -34,9 +34,9 @@ spec: {{ end -}} {{- range .Values.sidecarContainers }} -{{- $values := dict "Values" . "Release" $.Release "Template" $.Template -}} +{{- $values := dict "Values" (merge . (dict "global" $.Values.global)) "Release" $.Release "Template" $.Template -}} {{ if and (hasKey $values.Values "env") (hasKey $values.Values.env "vaultSecret") }} -{{ $name := default $.Release.Name $values.Values.global.serviceName }} +{{ $name := default $.Release.Name $.Values.global.serviceName }} --- apiVersion: external-secrets.io/v1beta1 kind: ExternalSecret @@ -73,9 +73,9 @@ spec: {{ end -}} {{- range .Values.initContainers }} -{{- $values := dict "Values" . "Release" $.Release "Template" $.Template -}} +{{- $values := dict "Values" (merge . (dict "global" $.Values.global)) "Release" $.Release "Chart" $.Chart "Template" $.Template -}} {{ if and (hasKey $values.Values "env") (hasKey $values.Values.env "vaultSecret") }} -{{ $name := default $.Release.Name $values.Values.global.serviceName }} +{{ $name := default $.Release.Name $.Values.global.serviceName }} --- apiVersion: external-secrets.io/v1beta1 kind: ExternalSecret @@ -111,7 +111,6 @@ spec: {{ end -}} {{ end -}} - {{- if .Values.vaultVolumesSupport -}} {{- $allVolumes := default (dict) .Values.volumes -}} {{- range $key, $value := $allVolumes }} diff --git a/stable/statefulset/Chart.yaml b/stable/statefulset/Chart.yaml index f1a5a09..ad130c8 100644 --- a/stable/statefulset/Chart.yaml +++ b/stable/statefulset/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: statefulset -version: 1.8.5 +version: 1.8.6 description: Typical StateFul Set application type: application dependencies: diff --git a/stable/statefulset/templates/external-secret.yaml b/stable/statefulset/templates/external-secret.yaml index c49674e..18c2946 100644 --- a/stable/statefulset/templates/external-secret.yaml +++ b/stable/statefulset/templates/external-secret.yaml @@ -34,9 +34,9 @@ spec: {{ end -}} {{- range .Values.sidecarContainers }} -{{- $values := dict "Values" . "Release" $.Release "Template" $.Template -}} +{{- $values := dict "Values" (merge . (dict "global" $.Values.global)) "Release" $.Release "Template" $.Template -}} {{ if and (hasKey $values.Values "env") (hasKey $values.Values.env "vaultSecret") }} -{{ $name := default $.Release.Name $values.Values.global.serviceName }} +{{ $name := default $.Release.Name $.Values.global.serviceName }} --- apiVersion: external-secrets.io/v1beta1 kind: ExternalSecret @@ -65,7 +65,7 @@ spec: {{- else -}} secret-{{ $.Values.global.product }}/data/ {{- $.Values.global.environment -}} - /k8s/{{ $value.path }} + /k8s/{{ $.Release.Namespace}}/{{ $value.path }} {{- end }} property: {{ default $key $value.secret }} {{ end -}} @@ -73,9 +73,9 @@ spec: {{ end -}} {{- range .Values.initContainers }} -{{- $values := dict "Values" . "Release" $.Release "Template" $.Template -}} +{{- $values := dict "Values" (merge . (dict "global" $.Values.global)) "Release" $.Release "Chart" $.Chart "Template" $.Template -}} {{ if and (hasKey $values.Values "env") (hasKey $values.Values.env "vaultSecret") }} -{{ $name := default $.Release.Name $values.Values.global.serviceName }} +{{ $name := default $.Release.Name $.Values.global.serviceName }} --- apiVersion: external-secrets.io/v1beta1 kind: ExternalSecret