Skip to content

Commit

Permalink
Optional .Values.backup.env appended to env vars of backup pod (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
lotharbach authored Jul 17, 2023
1 parent 38bde8a commit d684a24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/etcd/templates/statefulset-etcd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ spec:
value: /root/etcd-backup
{{- end }}
{{- end }}
{{- if .Values.backup.env }}
{{ toYaml .Values.backup.env | indent 8 }}
{{- end }}
volumeMounts:
- name: etcd-bootstrap
mountPath: /bootstrap
Expand Down
2 changes: 2 additions & 0 deletions charts/etcd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ backup:
storageContainer: ""
volumeMounts: []
# storePrefix: "custom-prefix"
env: [] # allows setting custom env vars

tls:
ca:
crt: ca-certificate
key: ca-key
server:
crt: server-certificate
key: server-key
Expand Down

0 comments on commit d684a24

Please sign in to comment.