Skip to content

Commit

Permalink
Merge pull request #43 from Chrislevi/fix/ro-configmap-job
Browse files Browse the repository at this point in the history
preInstallConfig.job ReadOnly fix
  • Loading branch information
bartlettc22 committed Aug 3, 2018
2 parents 21bf4eb + a6adfa9 commit 1583580
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions helm_charts/vault/templates/consul.preInstall.job.yaml
Expand Up @@ -26,6 +26,15 @@ spec:
app: {{ template "name" . }}
spec:
restartPolicy: Never
initContainers:
- name: copy-ro-scripts
image: busybox
command: ['sh', '-c', 'cp /scripts/* /etc/pre-install/']
volumeMounts:
- name: scripts
mountPath: /scripts
- name: pre-install
mountPath: /etc/pre-install
containers:
- name: {{ template "fullname" . }}-{{.Values.Consul.PreInstall.ComponentName}}
image: "{{.Values.Misc.kubectl.Image}}:{{.Values.Misc.kubectl.ImageTag}}"
Expand Down Expand Up @@ -64,6 +73,8 @@ spec:
readOnly: true
volumes:
- name: pre-install
emptyDir: {}
- name: scripts
configMap:
name: {{ template "fullname" . }}-{{.Values.Consul.PreInstall.ComponentName}}
- name: podinfo
Expand Down

0 comments on commit 1583580

Please sign in to comment.