Skip to content

Commit

Permalink
fix(chart): Operator time zone is inconsistent with MySQL.
Browse files Browse the repository at this point in the history
Operator mount the host's time zone

fix: #511
  • Loading branch information
runkecheng committed Jun 7, 2022
1 parent 03736d0 commit f97902f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions charts/mysql-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ spec:
secret:
defaultMode: 420
secretName: "{{ template "webhook.name" . }}-certs"
- name: timezone
hostPath:
path: /etc/localtime
containers:
{{- if .Values.rbacProxy.create }}
- name: kube-rbac-proxy
Expand All @@ -42,6 +45,9 @@ spec:
ports:
- containerPort: 8443
name: https
volumeMounts:
- name: timezone
mountPath: /etc/localtime
{{- end }}
- name: manager
ports:
Expand All @@ -52,6 +58,8 @@ spec:
- name: cert
mountPath: /tmp/k8s-webhook-server/serving-certs/
readOnly: true
- name: timezone
mountPath: /etc/localtime
command:
- /manager
args:
Expand Down

0 comments on commit f97902f

Please sign in to comment.