Skip to content

Commit

Permalink
Update pkg/webhook/pod/util.go
Browse files Browse the repository at this point in the history
Co-Authored-By: Yecheng Fu <cofyc.jackson@gmail.com>
  • Loading branch information
Yisaer and cofyc authored Jan 15, 2020
1 parent 7a9efc1 commit b02ed57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/webhook/pod/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func getOwnerStatefulSetForTiDBComponent(pod *core.Pod, kubeCli kubernetes.Inter
return kubeCli.AppsV1().StatefulSets(namespace).Get(ownerStatefulSetName, meta.GetOptions{})
}

// checkFormerPodRestartStatus whether there are any form pod is going to be restarted
// checkFormerPodRestartStatus checks whether there are any former pod is going to be restarted
// return true if existed
func checkFormerPodRestartStatus(kubeCli kubernetes.Interface, memberType v1alpha1.MemberType, tc *v1alpha1.TidbCluster, namespace string, ordinal int32, replicas int32) (bool, error) {
for i := replicas - 1; i > ordinal; i-- {
Expand Down

0 comments on commit b02ed57

Please sign in to comment.