Skip to content

Commit

Permalink
1.1.20: extSecrets - update logic to be more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
alexremn committed Sep 8, 2024
1 parent 2556d38 commit c7cc6ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions charts/default-templates/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
appVersion: '1.1.19'
version: '1.1.19'
appVersion: '1.1.20'
version: '1.1.20'
name: default-templates
description: Default templates chart
icon: https://hub.docker.com/public/images/logos/mini-logo.svg
Expand Down
16 changes: 8 additions & 8 deletions charts/default-templates/templates/_secret.external.multi.tpl
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{{- define "chart.secret.external.multi" -}}
{{- $secretStore := .Values.extSecrets.secretStore }}
{{- range $secret, $val := .Values.extSecrets.values }}
{{- range $secretName, $secretConfig := .Values.extSecrets }}
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: {{ $secret }}
name: {{ $secretName }}
labels: {{ include "chart.labels" $ | nindent 4 }}
annotations:
force-sync: {{ now | quote }}
spec:
refreshInterval: '0'
secretStoreRef:
kind: ClusterSecretStore
name: {{ $secretStore }}
name: {{ $secretConfig.secretStore }}
target:
creationPolicy: Owner
name: {{ $secret }}
name: {{ $secretName }}
data:
{{- range $key, $secrets := $val }}
{{- range $secrets }}
{{- range $secretConfig.secrets }}
{{- $remoteKey := .name }}
{{- range .keys }}
- secretKey: {{ . }}
remoteRef:
key: {{ $key }}
key: {{ $remoteKey }}
property: {{ . }}
{{- end }}
{{- end }}
Expand Down

0 comments on commit c7cc6ba

Please sign in to comment.