From 43783811f626292b9ea064160797976fcde18735 Mon Sep 17 00:00:00 2001 From: Markus Keil Date: Tue, 30 Jan 2024 16:22:46 +0100 Subject: [PATCH] prepopulate consig volume --- charts/cubebackup/Chart.yaml | 2 +- charts/cubebackup/templates/deployment.yaml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/charts/cubebackup/Chart.yaml b/charts/cubebackup/Chart.yaml index aafd5e5..82551ec 100644 --- a/charts/cubebackup/Chart.yaml +++ b/charts/cubebackup/Chart.yaml @@ -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" diff --git a/charts/cubebackup/templates/deployment.yaml b/charts/cubebackup/templates/deployment.yaml index 79a0097..dd82801 100644 --- a/charts/cubebackup/templates/deployment.yaml +++ b/charts/cubebackup/templates/deployment.yaml @@ -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