mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-21 15:47:09 +00:00
b51f127872
Offer a standalone dev environment or a dinum specific dev environment with ProConnect authentication. Needed to refactor the way secrets are managed in the project, and also re-organize the Helm chart to make it totally standalone. Particulary useful for external wanting to run the project. Work done by @rouja.
29 lines
648 B
YAML
29 lines
648 B
YAML
apiVersion: external-secrets.io/v1beta1
|
|
kind: ExternalSecret
|
|
metadata:
|
|
name: backend
|
|
namespace: {{ .Release.Namespace | quote }}
|
|
spec:
|
|
refreshInterval: "1m"
|
|
target:
|
|
name: backend
|
|
deletionPolicy: Delete
|
|
template:
|
|
type: Opaque
|
|
data:
|
|
{{- range .Values.secrets }}
|
|
{{ .podVariable }}: |-
|
|
{{`{{`}} {{ print "." .name }} {{`}}`}}
|
|
{{- end }}
|
|
data:
|
|
{{- range .Values.secrets }}
|
|
- secretKey: {{ .name }}
|
|
sourceRef:
|
|
storeRef:
|
|
name: {{ .clusterSecretStore }}
|
|
kind: ClusterSecretStore
|
|
remoteRef:
|
|
key: {{ .itemId }}
|
|
property: {{ .field }}
|
|
{{- end }}
|