Fix being able to set the VK's listening port
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user