Skip to content
Snippets Groups Projects
Commit d2daeaeb authored by bravof's avatar bravof
Browse files

fix(touch): touch now with emptyDir

parent 209bf1d6
No related branches found
No related tags found
1 merge request!58fix(touch): touch now with emptyDir
......@@ -19,12 +19,12 @@ spec:
initContainers:
- name: cleanup
image: busybox:1.28
command: ['sh', '-c', 'if [ -f "/etc/snmp_exporter/generator.yml" ]; then touch /etc/internalcomm/ok.init; fi']
command: ['sh', '-c', 'if [ -f "/etc/snmp_exporter/generator.yml" ]; then touch /internalcomm/ok.init; fi']
volumeMounts:
- name: config-volume
mountPath: /etc/snmp_exporter
- name: internal-comm
mountPath: /etc/internalcomm
mountPath: /internalcomm
- name: init-config
image: busybox:1.28
command: ['sh', '-c', 'if [ ! -f "/etc/snmp_exporter/snmp.yml" ]; then cp /etc/snmp_exporter_init/snmp.yml /etc/snmp_exporter; fi']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment