Skip to content

Commit

Permalink
Merge pull request #959 from yancl/fix-master-kubelet-validation
Browse files Browse the repository at this point in the history
fix validation for master kubelet api server
  • Loading branch information
chrislovecnm authored Nov 21, 2016
2 parents 4308340 + 9c9ff8c commit 0055732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/kops/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
Expand Down

0 comments on commit 0055732

Please sign in to comment.