@@ -7,32 +7,40 @@ metadata:
77 mission : plugin
88spec :
99 initContainers :
10- - name : decode-macaroon
11- image : busybox
12- command : ["sh", "-c"]
10+ - name : " init-container"
11+ image : " busybox"
12+ command :
13+ - " sh"
14+ - " -c"
1315 args :
14- - |
15- cp /configmap/* /config
16- cat /config/admin.macaroon.hex | xxd -r -p > /config/admin.macaroon
16+ - >
17+ cp /configmap/* /working;
18+ cd /working;
19+ cat admin.macaroon.hex | xxd -r -p > admin.macaroon
1720 volumeMounts :
18- - name : config-volume
19- mountPath : /config
20- - name : configmap-volume
21- mountPath : /configmap
21+ - name : {{ .Values.workingVolume.name }}
22+ mountPath : {{ .Values.workingVolume.mountPath }}
23+ - name : {{ .Values.configmapVolume.name }}
24+ mountPath : {{ .Values.configmapVolume.mountPath }}
2225 containers :
2326 - name : {{ .Values.name }}
2427 image : " {{ .Values.image.repository }}:{{ .Values.image.tag }}"
2528 imagePullPolicy : {{ .Values.image.pullPolicy }}
26- command : {{ .Values.command | toJson }}
27- args : {{ .Values.args | toJson }}
29+ command :
30+ - " sh"
31+ - " -c"
32+ args :
33+ - >
34+ cd /working;
35+ sim-cli
2836 volumeMounts :
29- - name : config-volume
30- mountPath : /config
31- - name : configmap-volume
32- mountPath : /configmap
37+ - name : {{ .Values.workingVolume.name }}
38+ mountPath : {{ .Values.workingVolume.mountPath }}
39+ - name : {{ .Values.configmapVolume.name }}
40+ mountPath : {{ .Values.configmapVolume.mountPath }}
3341 volumes :
34- - name : configmap-volume
42+ - name : {{ .Values.configmapVolume.name }}
3543 configMap :
3644 name : {{ include "mychart.fullname" . }}-data
37- - name : config-volume
45+ - name : {{ .Values.workingVolume.name }}
3846 emptyDir : {}
0 commit comments