From 74409db75703a69c7db92607cc2d5240fdd3ad4c Mon Sep 17 00:00:00 2001 From: jeanmi <45998535+jeanmi151@users.noreply.github.com> Date: Thu, 14 Mar 2024 10:51:23 +0100 Subject: [PATCH] fix chown initcontainer vrt-bot (#20) * fix chown in initcontainer and image --- vrt-bot/templates/vrtbot-cronjob.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vrt-bot/templates/vrtbot-cronjob.yaml b/vrt-bot/templates/vrtbot-cronjob.yaml index 7d79edb..e7d375b 100644 --- a/vrt-bot/templates/vrtbot-cronjob.yaml +++ b/vrt-bot/templates/vrtbot-cronjob.yaml @@ -28,8 +28,8 @@ spec: {{- .Values.volumes | toYaml | nindent 10 }} initContainers: - name: create-sourcedir - image: busybox - command: ['sh', '-c', "mkdir -p $SOURCEDIR; chown www-data:www-data $SOURCEDIR"] + image: "{{ .Values.image }}" + command: ['sh', '-c', "mkdir -p $SOURCEDIR; chown app:app $SOURCEDIR"] volumeMounts: {{- .Values.volumeMounts | toYaml | nindent 14 }} env: