Some kubelet flags do not accept their default values

Correct the flags and add a round trip test that ensure these do not
break again in the future.
This commit is contained in:
Clayton Coleman
2017-09-16 16:19:33 -04:00
parent d48611a1da
commit 748172f94e
5 changed files with 166 additions and 3 deletions

View File

@@ -35,6 +35,10 @@ type IPVar struct {
}
func (v IPVar) Set(s string) error {
if len(s) == 0 {
v.Val = nil
return nil
}
if net.ParseIP(s) == nil {
return fmt.Errorf("%q is not a valid IP address", s)
}