Skip to content

Commit

Permalink
prepopulate consig volume
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed Jan 30, 2024
1 parent cb32a5a commit 4378381
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/cubebackup/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: cubebackup
description: A Helm chart for cubebackup
type: application

version: 0.0.2
version: 0.0.3

# App metadata
appVersion: "v1.0.0"
Expand Down
7 changes: 7 additions & 0 deletions charts/cubebackup/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ spec:
labels:
app: {{ .Release.Name }}
spec:
initContainers:
- name: init-config
image: cubebackup/cubebackup
command: ["/bin/sh", "-c", "cp -Rnv /etc/cubebackup/* /tmp/"]
volumeMounts:
- name: vol-config
mountPath: /tmp
containers:
- name: cubebackup
image: cubebackup/cubebackup
Expand Down

0 comments on commit 4378381

Please sign in to comment.