Update kubeproxy config validation to support list of comma

separated pod CIDRs. Dual-stack feature must be enabled for the
validation to be done.
This commit is contained in:
Arvinderpal Wander
2019-06-23 17:53:22 -07:00
parent 3e3addf6c8
commit ec77598906
4 changed files with 15 additions and 4 deletions

View File

@@ -202,7 +202,7 @@ func TestValidateKubeProxyConfiguration(t *testing.T) {
TCPCloseWaitTimeout: &metav1.Duration{Duration: 5 * time.Second},
},
},
msg: "must be a valid CIDR block (e.g. 10.100.0.0/16)",
msg: "must be a valid CIDR block (e.g. 10.100.0.0/16 or FD02::0:0:0/96)",
},
{
config: kubeproxyconfig.KubeProxyConfiguration{