Skip to content

Commit

Permalink
Merge pull request #4079 from justinsb/validation_baremetal_no_subnet…
Browse files Browse the repository at this point in the history
…_cidrs

Automatic merge from submit-queue.

validation: don't require subnet CIDRs on baremetal
  • Loading branch information
Kubernetes Submit Queue authored Dec 15, 2017
2 parents 96ee92a + 6ef414e commit 09ba34c
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 09ba34c

Please sign in to comment.