From 092becc719cf3c8a5db1a37ca6ed0b7a5776eb8a Mon Sep 17 00:00:00 2001 From: Mike Splain Date: Fri, 27 Jul 2018 10:16:06 -0400 Subject: [PATCH] CloudProvider is defined in the Cluster Spec. 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. --- pkg/apis/kops/validation/legacy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/apis/kops/validation/legacy.go b/pkg/apis/kops/validation/legacy.go index c2a14d2cef819..d4f3e6ca9618b 100644 --- a/pkg/apis/kops/validation/legacy.go +++ b/pkg/apis/kops/validation/legacy.go @@ -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") }