Make nodecontroller configure nodes' pod IP ranges

This commit is contained in:
Tomek Kulczynski
2015-02-24 13:32:44 +01:00
committed by CJ Cullen
parent db6586bdab
commit 290c7b94ef
13 changed files with 286 additions and 126 deletions

View File

@@ -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)