Fix being able to set the VK's listening port

This commit is contained in:
Sargun Dhillon
2019-05-08 17:18:42 -07:00
parent 2497028659
commit 59d021f644

View File

@@ -117,9 +117,10 @@ func SetDefaultOpts(c *Opts) error {
return errors.Wrap(err, "error parsing KUBELET_PORT environment variable") return errors.Wrap(err, "error parsing KUBELET_PORT environment variable")
} }
c.ListenPort = int32(p) c.ListenPort = int32(p)
} } else {
c.ListenPort = DefaultListenPort c.ListenPort = DefaultListenPort
} }
}
if c.KubeNamespace == "" { if c.KubeNamespace == "" {
c.KubeNamespace = DefaultKubeNamespace c.KubeNamespace = DefaultKubeNamespace