From 9c9ff8c6e0cbc48d9b8c9bdffccc7defb1750023 Mon Sep 17 00:00:00 2001 From: yancl Date: Mon, 21 Nov 2016 03:50:44 +0000 Subject: [PATCH] fix validation for master kubelet api server that checked kubelet api server instead --- pkg/apis/kops/validation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/apis/kops/validation.go b/pkg/apis/kops/validation.go index be62bbb49ae4c..cedb9e198ed54 100644 --- a/pkg/apis/kops/validation.go +++ b/pkg/apis/kops/validation.go @@ -287,7 +287,7 @@ func (c *Cluster) Validate(strict bool) error { if strict && c.Spec.MasterKubelet.APIServers == "" { return field.Required(masterKubeletPath.Child("APIServers"), "") } - if c.Spec.Kubelet.APIServers != "" && !isValidAPIServersURL(c.Spec.MasterKubelet.APIServers) { + if c.Spec.MasterKubelet.APIServers != "" && !isValidAPIServersURL(c.Spec.MasterKubelet.APIServers) { return field.Invalid(masterKubeletPath.Child("APIServers"), c.Spec.MasterKubelet.APIServers, "Not a valid APIServer URL") } }