mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
Make nodecontroller configure nodes' pod IP ranges
This commit is contained in:
committed by
CJ Cullen
parent
db6586bdab
commit
290c7b94ef
@@ -139,6 +139,15 @@ func (s StringSet) List() []string {
|
||||
return res
|
||||
}
|
||||
|
||||
// Returns a single element from the set.
|
||||
func (s StringSet) PopAny() (string, bool) {
|
||||
for key := range s {
|
||||
s.Delete(key)
|
||||
return key, true
|
||||
}
|
||||
return "", false
|
||||
}
|
||||
|
||||
// Len returns the size of the set.
|
||||
func (s StringSet) Len() int {
|
||||
return len(s)
|
||||
|
Reference in New Issue
Block a user