diff --git a/chart/templates/Deployment.yaml b/chart/templates/Deployment.yaml index 57686dc..5a28df2 100644 --- a/chart/templates/Deployment.yaml +++ b/chart/templates/Deployment.yaml @@ -37,7 +37,7 @@ spec: - name: "init" image: "alpine/git:latest" imagePullPolicy: Always - command: ["ash", "-c", "cd /appdata && git clone git@git.weebo.fr:sandbox/base-image.git ."] + command: ["ash", "-c", "cp /root/test/* /root/.ssh && chmod 600 /root/.ssh/base-image && cd /appdata && git clone git@git.weebo.fr:sandbox/base-image.git ."] env: - name: "GIT_SSH_COMMAND" value: "ssh -o StrictHostKeyChecking=no" @@ -45,7 +45,7 @@ spec: - name: "base-image" mountPath: "/appdata" - name: "ssh-key" - mountPath: "/root/.ssh" + mountPath: "/root/test" containers: - name: "{{ .Chart.Name }}-{{- template "mychart.name" . -}}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"