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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user