From 59d021f644c1b584c9a86f1e8ca25119d36754c0 Mon Sep 17 00:00:00 2001 From: Sargun Dhillon Date: Wed, 8 May 2019 17:18:42 -0700 Subject: [PATCH] Fix being able to set the VK's listening port --- virtual-kubelet/commands/root/opts.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/virtual-kubelet/commands/root/opts.go b/virtual-kubelet/commands/root/opts.go index 845f404..7bb8496 100644 --- a/virtual-kubelet/commands/root/opts.go +++ b/virtual-kubelet/commands/root/opts.go @@ -117,8 +117,9 @@ func SetDefaultOpts(c *Opts) error { return errors.Wrap(err, "error parsing KUBELET_PORT environment variable") } c.ListenPort = int32(p) + } else { + c.ListenPort = DefaultListenPort } - c.ListenPort = DefaultListenPort } if c.KubeNamespace == "" {