mirror of https://github.com/k3s-io/k3s
Merge pull request #77011 from SataQiu/automated-cherry-pick-of-#76923-up-release-1.14
Automated cherry pick of #76923: fix validation message: apiServerEndpoints ->apiServerEndpointpull/564/head
commit
f350b2cfed
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue