feat(#22): find loopback random port if no specified
Compare changes
Files
5+ 6
− 1
@@ -53,9 +53,9 @@ func (c *Config) FlagSet() *flag.FlagSet {
@@ -98,6 +98,11 @@ func (c *Config) Validate() error {
Hi,
A tiny contrib.
This will search a random port available, but no the priv ports > 1024.
I don't know if this is better to panic if no port available ( if this happen this is really well and this is better to not start
I still need to find a way to pass the good port in the kubeconfig then.