mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
kubeadm: use non-formatting constructor for new error
This commit is contained in:
parent
cdbc9d8567
commit
193d0f21c4
@ -52,7 +52,7 @@ func enforceRequirements(flags *applyPlanFlags, dryRun bool, newK8sVersion strin
|
||||
|
||||
// Check if the cluster is self-hosted
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user