Commit c8e6c2ee authored by Klaus Ma's avatar Klaus Ma

Updated comments according to the logic.

parent 8667d7c4
...@@ -56,8 +56,8 @@ func (o overlappingStatefulSets) Less(i, j int) bool { ...@@ -56,8 +56,8 @@ func (o overlappingStatefulSets) Less(i, j int) bool {
var statefulPodRegex = regexp.MustCompile("(.*)-([0-9]+)$") var statefulPodRegex = regexp.MustCompile("(.*)-([0-9]+)$")
// getParentNameAndOrdinal gets the name of pod's parent StatefulSet and pod's ordinal as extracted from its Name. If // getParentNameAndOrdinal gets the name of pod's parent StatefulSet and pod's ordinal as extracted from its Name. If
// the Pod was not created by a StatefulSet, its parent is considered to be nil, and its ordinal is considered to be // the Pod was not created by a StatefulSet, its parent is considered to be empty string, and its ordinal is considered
// -1. // to be -1.
func getParentNameAndOrdinal(pod *v1.Pod) (string, int) { func getParentNameAndOrdinal(pod *v1.Pod) (string, int) {
parent := "" parent := ""
ordinal := -1 ordinal := -1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment