Fix assignment to nil map in e2e scheduling predicates

Ready schedulable nodes are being inserted into an unitialized string
set, causing an assignment to entry in nil map in the underlying data
structure. This initializes the string set before attempting to insert
nodes.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
This commit is contained in:
hasheddan
2020-06-25 08:23:41 -05:00
parent e529bd0bca
commit df5ddc70a0

View File

@@ -52,8 +52,8 @@ const (
var localStorageVersion = utilversion.MustParseSemantic("v1.8.0-beta.0") var localStorageVersion = utilversion.MustParseSemantic("v1.8.0-beta.0")
// variable set in BeforeEach, never modified afterwards // variable populated in BeforeEach, never modified afterwards
var workerNodes sets.String var workerNodes = sets.String{}
type pausePodConfig struct { type pausePodConfig struct {
Name string Name string