Skip to content

Commit

Permalink
fix: ignore unset variables from minikube docker-env (#9018)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximdeclercq authored Aug 14, 2023
1 parent 59a928e commit d2b34f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/skaffold/docker/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ func getMinikubeDockerEnv(ctx context.Context, minikubeProfile string) (map[stri
if len(kv) != 2 {
return nil, fmt.Errorf("unable to parse minikube docker-env keyvalue: %s, line: %s, output: %s", kv, line, string(out))
}
if kv[1] == "" {
continue
}
env[kv[0]] = kv[1]
}

Expand Down

0 comments on commit d2b34f9

Please sign in to comment.