We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb01f36 commit 685969dCopy full SHA for 685969d
pkg/controller/statefulset/stateful_set_utils.go
@@ -22,10 +22,9 @@ import (
22
"fmt"
23
"regexp"
24
"strconv"
25
- "time"
26
27
apps "k8s.io/api/apps/v1"
28
- "k8s.io/api/core/v1"
+ v1 "k8s.io/api/core/v1"
29
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
30
"k8s.io/apimachinery/pkg/runtime"
31
"k8s.io/apimachinery/pkg/util/strategicpatch"
@@ -78,7 +77,7 @@ func getParentName(pod *v1.Pod) string {
78
77
return parent
79
}
80
81
-// getOrdinal gets pod's ordinal. If pod has no ordinal, -1 is returned.
+// getOrdinal gets pod's ordinal. If pod has no ordinal, -1 is returned.
82
func getOrdinal(pod *v1.Pod) int {
83
_, ordinal := getParentNameAndOrdinal(pod)
84
return ordinal
0 commit comments