mirror of https://github.com/kubernetes/kops.git
validation: don't require subnet CIDRs on baremetal
They aren't needed!
This commit is contained in:
parent
3a10a8c7cb
commit
6ef414e040
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue