Skip to content

Commit 4931049

Browse files
xhkyyycalind
authored andcommitted
fix:#615
1 parent dc96fa2 commit 4931049

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

deploy/charts/mysql-operator/templates/statefulset.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ spec:
9393
secretRef:
9494
name: {{ template "mysql-operator.orc-secret-name" . }}
9595
volumeMounts:
96-
- name: data
97-
mountPath: /var/lib/orchestrator/
9896
- name: config
9997
mountPath: /usr/local/share/orchestrator/templates/
10098
livenessProbe:
@@ -120,6 +118,13 @@ spec:
120118
- name: data
121119
emptyDir: {}
122120
{{- end }}
121+
initContainers:
122+
- name: init-mount
123+
image: busybox:1.34.0
124+
command: ['sh', '-c', "chown -R 777:777 /var/lib/orchestrator"]
125+
volumeMounts:
126+
- name: data
127+
mountPath: /var/lib/orchestrator/
123128

124129
# security context to mount corectly the volume for orc
125130
securityContext:

0 commit comments

Comments
 (0)