Unverified Commit a9fd9cef authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

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

kubeadm: use non-formatting constructor for new error
parents f7eb5769 193d0f21
...@@ -52,7 +52,7 @@ func enforceRequirements(flags *applyPlanFlags, dryRun bool, newK8sVersion strin ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment