Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDO-3517: add eso secrets to data repo #253

Merged
merged 15 commits into from
Apr 2, 2024
24 changes: 24 additions & 0 deletions charts/create-secret-manager-secret/templates/vaultsecret.yaml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,27 @@ spec:
key: {{ .vaultKey }}
{{- end }}
{{- end -}}

{{- range .Values.externalSecrets.secrets }}
---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: {{ .secretName }}
labels: {{- include "datarepo.labels" . | nindent 4 }}
jack-r-warren marked this conversation as resolved.
Show resolved Hide resolved
spec:
secretStoreRef:
name: cluster-secret-store
kind: ClusterSecretStore
refreshInterval: {{ .Values.externalSecrets.refreshInterval | quote }}
data:
{{- range .data}}
- secretKey: {{ .secretKey}}
remoteRef:
key: {{ .key }}
property: {{ .property }}
{{- if .decodingStrategy }}
decodingStrategy: {{ .decodingStrategy }}
{{- end }}
{{- end}}
{{- end -}}
11 changes: 11 additions & 0 deletions charts/create-secret-manager-secret/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,14 @@ secrets:
# - kubeSecretKey: ## name of kubeSecretKey
# path: ## vault path
# vaultKey: ## vault key name

externalSecrets:
secrets: []
refreshInterval: "5m"

# - secretName: ## name of kubeSecret
# data:
# - secretKey: ## name of kubeSecretKey
# key: ## key name
# property: ## description of secret
# decodingStrategy: ## how to decode secret
Loading