Skip to content

Commit

Permalink
add TiDBUpgrading func (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxGit authored and xiaojingchen committed Apr 26, 2019
1 parent 7f1ac2b commit 3dea9f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/apis/pingcap.com/v1alpha1/tidbcluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ func (tc *TidbCluster) TiKVUpgrading() bool {
return tc.Status.TiKV.Phase == UpgradePhase
}

func (tc *TidbCluster) TiDBUpgrading() bool {
return tc.Status.TiDB.Phase == UpgradePhase
}

func (tc *TidbCluster) PDAllPodsStarted() bool {
return tc.PDRealReplicas() == tc.Status.PD.StatefulSet.Replicas
}
Expand Down

0 comments on commit 3dea9f9

Please sign in to comment.