File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 3434 serviceAccountName : {{ include "chart.serviceAccountName" . }}
3535 securityContext :
3636 {{- toYaml .Values.podSecurityContext | nindent 8 }}
37+ initContainers :
38+ - name : cptoken
39+ image : busybox
40+ command : ['sh', '-c', 'cp /var/run/secrets/kubernetes.io/serviceaccount/token /opt/token.txt ; chmod 644 /opt/token.txt']
41+ volumeMounts :
42+ - name : data
43+ mountPath : /opt
3744 containers :
3845 - name : {{ .Chart.Name }}
3946 securityContext :
@@ -104,6 +111,8 @@ spec:
104111 mountPath : /var/lib/postgresql
105112 - name : var-run-postgresql
106113 mountPath : /var/run/postgresql
114+ - name : data
115+ mountPath : /opt
107116 {{- with .Values.nodeSelector }}
108117 nodeSelector :
109118 {{- toYaml . | nindent 8 }}
@@ -123,4 +132,5 @@ spec:
123132 emptyDir : {}
124133 - name : var-run-postgresql
125134 emptyDir : {}
126-
135+ - name : data
136+ emptyDir : {}
You can’t perform that action at this time.
0 commit comments