Skip to content

Commit

Permalink
fix operator failover config invalid (#1902)
Browse files Browse the repository at this point in the history
Co-authored-by: mikechengwei <842725815@qq.com>
  • Loading branch information
sre-bot and mikechengwei authored Mar 11, 2020
1 parent 0676858 commit 2f75e7e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ spec:
{{- end }}
- -tidb-discovery-image={{ .Values.operatorImage }}
- -cluster-scoped={{ .Values.clusterScoped }}
- -auto-failover={{ .Values.controllerManager.autoFailover | default true }}
{{- if eq .Values.controllerManager.autoFailover true }}
- -auto-failover=true
{{- end }}
{{- if eq .Values.controllerManager.autoFailover false }}
- -auto-failover=false
{{- end }}
- -pd-failover-period={{ .Values.controllerManager.pdFailoverPeriod | default "5m" }}
- -tikv-failover-period={{ .Values.controllerManager.tikvFailoverPeriod | default "5m" }}
- -tidb-failover-period={{ .Values.controllerManager.tidbFailoverPeriod | default "5m" }}
Expand Down

0 comments on commit 2f75e7e

Please sign in to comment.