code: func getParentNameAndOrdinal(pod *v1.Pod) (string, int) {
  	parent := ""
  	ordinal := -1
  	subMatches := statefulPodRegex.FindStringSubmatch(pod.Name)
  	if len(subMatches) < 3 {
  		return parent, ordinal
  	}
  	parent = subMatches[1]
  	if i, err := strconv.ParseInt(subMatches[2], 10, 32); err == nil {
  		ordinal = int(i)
  	}
  	return parent, ordinal
  }
docs: // 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 empty string, and its ordinal is considered
  // to be -1.