validation: don't require subnet CIDRs on baremetal

They aren't needed!
This commit is contained in:
Justin Santa Barbara 2017-12-15 01:02:25 -05:00
parent 3a10a8c7cb
commit 6ef414e040
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ func ValidateCluster(c *kops.Cluster, strict bool) *field.Error {
switch kops.CloudProviderID(c.Spec.CloudProvider) {
case kops.CloudProviderBareMetal:
requiresSubnets = false
requiresSubnetCIDR = false
requiresNetworkCIDR = false
if c.Spec.NetworkCIDR != "" {
return field.Invalid(fieldSpec.Child("NetworkCIDR"), c.Spec.NetworkCIDR, "NetworkCIDR should not be set on bare metal")