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
4 changes: 2 additions & 2 deletions charts/create-secret-manager-secret/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.0.6
appVersion: 0.0.6
version: 0.0.7
appVersion: 0.0.7
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
keywords:
Expand Down
23 changes: 23 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,26 @@ spec:
key: {{ .vaultKey }}
{{- end }}
{{- end -}}

{{- range .Values.externalSecrets.secrets }}
---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: {{ .secretName }}
spec:
secretStoreRef:
name: cluster-secret-store
kind: ClusterSecretStore
refreshInterval: {{ .refreshInterval | quote }}
data:
{{- range .data}}
- secretKey: {{ .secretKey}}
remoteRef:
key: {{ .remoteRef.key }}
property: {{ .remoteRef.property }}
{{- if .remoteRef.decodingStrategy }}
decodingStrategy: {{ .remoteRef.decodingStrategy }}
{{- end }}
{{- end}}
{{- end -}}
10 changes: 10 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,13 @@ secrets:
# - kubeSecretKey: ## name of kubeSecretKey
# path: ## vault path
# vaultKey: ## vault key name

externalSecrets:
secrets: []

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