Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
c8e6c2ee
Commit
c8e6c2ee
authored
Apr 06, 2017
by
Klaus Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated comments according to the logic.
parent
8667d7c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
stateful_set_utils.go
pkg/controller/statefulset/stateful_set_utils.go
+2
-2
No files found.
pkg/controller/statefulset/stateful_set_utils.go
View file @
c8e6c2ee
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment