Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ spec:
- secretRef:
name: {{ include "microservice.fullname" . }}-sealedsecret
{{- end }}
{{- if .Values.externalSecret.enabled }}
- secretRef:
name: {{ .Values.externalSecret.name }}
{{- end }}
{{- if .Values.livenessProbe.enabled }}
livenessProbe:
httpGet:
Expand Down
22 changes: 22 additions & 0 deletions templates/externalsecret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{{- if (.Values.externalSecret.enabled) -}}
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: {{ .Values.externalSecret.name }}
labels:
{{- with .Values.externalSecret.extraLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
refreshInterval: {{ .Values.externalSecret.refreshInterval }}
secretStoreRef:
name: {{ .Values.externalSecret.secretStoreRef.name }}
kind: ClusterSecretStore
target:
name: {{ .Values.externalSecret.name }}
creationPolicy: {{ .Values.externalSecret.target.creationPolicy }}
dataFrom:
- extract:
key: {{ .Values.externalSecret.dataFrom.key }}
{{- end -}}

11 changes: 11 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,17 @@ sealedSecret:
encryptedData: {}


externalSecret:
enabled: false
name: app-secret-external
refreshInterval: 1m
secretStoreRef:
name: cluster-secret-store
target:
creationPolicy: Owner
dataFrom:
key: app-secret

imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
Expand Down