Merge pull request #74195 from rojkov/kubeadm-refactor-nonformatting

kubeadm: use non-formatting constructor for new error
This commit is contained in:
Kubernetes Prow Robot 2019-02-18 08:45:42 -08:00 committed by GitHub
commit a9fd9cef76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ func enforceRequirements(flags *applyPlanFlags, dryRun bool, newK8sVersion strin
// Check if the cluster is self-hosted // Check if the cluster is self-hosted
if upgrade.IsControlPlaneSelfHosted(client) { if upgrade.IsControlPlaneSelfHosted(client) {
return nil, nil, nil, errors.Errorf("cannot upgrade a self-hosted control plane") return nil, nil, nil, errors.New("cannot upgrade a self-hosted control plane")
} }
// Run healthchecks against the cluster // Run healthchecks against the cluster