Skip to content

Commit

Permalink
CloudProvider is defined in the Cluster Spec.
Browse files Browse the repository at this point in the history
CloudProvider can be set at the kubelet level, however
if the user overrides kubelet values, CloudProvider isn't always
set at this point, leading to an error.
  • Loading branch information
mikesplain authored and adammw committed Oct 5, 2018
1 parent 6cf4f35 commit 092becc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/kops/validation/legacy.go
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ func ValidateCluster(c *kops.Cluster, strict bool) *field.Error {
}

if c.Spec.Networking != nil && c.Spec.Networking.AmazonVPC != nil &&
c.Spec.Kubelet != nil && (c.Spec.Kubelet.CloudProvider != "aws") {
(c.Spec.CloudProvider != "aws") {
return field.Invalid(fieldSpec.Child("Networking"), "amazon-vpc-routed-eni", "amazon-vpc-routed-eni networking is supported only in AWS")
}

Expand Down

0 comments on commit 092becc

Please sign in to comment.