mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Updated comments according to the logic.
This commit is contained in:
parent
8667d7c4f1
commit
c8e6c2eecd
@ -56,8 +56,8 @@ func (o overlappingStatefulSets) Less(i, j int) bool {
|
||||
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
|
||||
// the Pod was not created by a StatefulSet, its parent is considered to be nil, and its ordinal is considered to be
|
||||
// -1.
|
||||
// the Pod was not created by a StatefulSet, its parent is considered to be empty string, and its ordinal is considered
|
||||
// to be -1.
|
||||
func getParentNameAndOrdinal(pod *v1.Pod) (string, int) {
|
||||
parent := ""
|
||||
ordinal := -1
|
||||
|
Loading…
Reference in New Issue
Block a user