Skip to content

Commit

Permalink
fix operator failover config invalid (pingcap#2231)
Browse files Browse the repository at this point in the history
Co-authored-by: mikechengwei <842725815@qq.com>
  • Loading branch information
weekface and mikechengwei authored Apr 28, 2020
1 parent 751648d commit 54d8520
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ spec:
- /usr/local/bin/tidb-controller-manager
- -default-storage-class-name={{ .Values.defaultStorageClassName }}
- -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 54d8520

Please sign in to comment.