Skip to content

Commit

Permalink
validation: don't require subnet CIDRs on baremetal
Browse files Browse the repository at this point in the history
They aren't needed!
  • Loading branch information
justinsb committed Dec 15, 2017
1 parent 3a10a8c commit 6ef414e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/apis/kops/validation/legacy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 6ef414e

Please sign in to comment.