Merge pull request #77011 from SataQiu/automated-cherry-pick-of-#76923-up-release-1.14

Automated cherry pick of #76923: fix validation message: apiServerEndpoints ->apiServerEndpoint
pull/564/head
Kubernetes Prow Robot 2019-05-02 14:00:41 -07:00 committed by GitHub
commit f350b2cfed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ func ValidateDiscoveryBootstrapToken(b *kubeadm.BootstrapTokenDiscovery, fldPath
}
allErrs = append(allErrs, ValidateToken(b.Token, fldPath.Child(kubeadmcmdoptions.TokenStr))...)
allErrs = append(allErrs, ValidateDiscoveryTokenAPIServer(b.APIServerEndpoint, fldPath.Child("apiServerEndpoints"))...)
allErrs = append(allErrs, ValidateDiscoveryTokenAPIServer(b.APIServerEndpoint, fldPath.Child("apiServerEndpoint"))...)
return allErrs
}