Skip to content

Commit

Permalink
Use local chart for etcd where secretStringData can be set.
Browse files Browse the repository at this point in the history
With the breaking change in etcd-backup-restore the credentials for our
etcd backup can not be passed over the ENV anymore. Therefore we
introduced a new method to pass them over helm values.

See: https://github.com/gardener/etcd-backup-restore/releases/tag/v0.19.0

This commit can be dropped whenever it is contributed upstream in
gardener-community/etcd helm chart.
  • Loading branch information
maboehm authored and Duciwuci committed Jul 4, 2024
1 parent 07ed146 commit 11c2fb5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
7 changes: 3 additions & 4 deletions gardener/etcd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ spec:
- name: certificates
chart:
spec:
chart: etcd
version: 6.2.0
chart: ./helmcharts/etcd
sourceRef:
kind: HelmRepository
name: gardener-community-charts
kind: GitRepository
name: yake
namespace: flux-system
interval: 1m
valuesFrom:
Expand Down
2 changes: 2 additions & 0 deletions helmcharts/etcd/templates/secret-etcd-backup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ metadata:
name: {{ .Values.name }}-backup
namespace: {{ .Release.Namespace }}
type: Opaque
stringData:
{{- toYaml .Values.backup.secretStringData | nindent 2 }}
data:
{{ toYaml .Values.backup.secretData | indent 2 }}

Expand Down
1 change: 1 addition & 0 deletions helmcharts/etcd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ backup:
maxBackups: 7
schedule: 0 */24 * * *
secretData: {}
secretStringData: {}
storageContainer: ""
storageProvider: ""
volumeMounts: []
Expand Down

0 comments on commit 11c2fb5

Please sign in to comment.