mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 02:11:09 +00:00
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:
parent
e529bd0bca
commit
df5ddc70a0
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user