From 7d13c9b096b21427eebbbcf9174d4241f65fe4af Mon Sep 17 00:00:00 2001 From: upodroid Date: Wed, 26 Jul 2023 10:32:27 +0300 Subject: [PATCH] set map to nil if an empty string is passed --- build/root/Makefile | 2 ++ test/e2e_node/remote/gce/gce_runner.go | 3 +++ 2 files changed, 5 insertions(+) diff --git a/build/root/Makefile b/build/root/Makefile index 23f93a30f8b93..17d9945b78b0d 100644 --- a/build/root/Makefile +++ b/build/root/Makefile @@ -257,6 +257,8 @@ define TEST_E2E_NODE_HELP_INFO # SSH_USER: For REMOTE=true only SSH username to use. # SSH_KEY: For REMOTE=true only. Path to SSH key to use. # SSH_OPTIONS: For REMOTE=true only. SSH options to use. +# INSTANCE_TYPE: For REMOTE=true only. Machine type to use. +# NODE_ENV: For REMOTE=true only. Additional metadata keys to add the instance. # RUNTIME_CONFIG: The runtime configuration for the API server on the node e2e tests. # # Example: diff --git a/test/e2e_node/remote/gce/gce_runner.go b/test/e2e_node/remote/gce/gce_runner.go index 27f542e90a809..a94238691cf51 100644 --- a/test/e2e_node/remote/gce/gce_runner.go +++ b/test/e2e_node/remote/gce/gce_runner.go @@ -58,6 +58,9 @@ func (e *envs) String() string { // Set function of flag.Value func (e *envs) Set(value string) error { + if value == "" { + return nil + } kv := strings.SplitN(value, "=", 2) if len(kv) != 2 { return fmt.Errorf("invalid env string %s", value)