kubectl icon indicating copy to clipboard operation
kubectl copied to clipboard

Fix punctuation or reword the error message: "cannot delete Pods declare no controller"

Open wvxvw opened this issue 2 years ago • 10 comments

cannot delete Pods declare no controller

Is a... broken English? What were you trying to say here? Please make this error message make sense.

This is found in kubectl 1.25, but I'm not sure it's coming from kubectl itself, maybe it's from somewhere else. But due to the incomprehensible nature of this message I cannot even begin to guess where this may come from.

NB. The complete error message might look something like this:

error: unable to drain node "node005" due to error:cannot delete Pods declare no controller (use --force to override):

So, the formatting is also broken (missing space after colon).

wvxvw avatar Aug 15 '23 16:08 wvxvw

When you drain a node, if there are direct pods on that node (meaning the pods have no owner, such as pods generated by a deployment which have owners), this error will occur.

return MakePodDeleteStatusWithError(unmanagedFatal)

image

Ithrael avatar Aug 16 '23 02:08 Ithrael

/triage accept /sig cli

mpuckett159 avatar Aug 16 '23 23:08 mpuckett159

@mpuckett159: The label(s) triage/accept cannot be applied, because the repository doesn't have them.

In response to this:

/triage accept /sig cli

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Aug 16 '23 23:08 k8s-ci-robot

/good-first-issue

mpuckett159 avatar Aug 16 '23 23:08 mpuckett159

@mpuckett159: This request has been marked as suitable for new contributors.

Guidelines

Please ensure that the issue body includes answers to the following questions:

  • Why are we solving this issue?
  • To address this issue, are there any code changes? If there are code changes, what needs to be done in the code and what places can the assignee treat as reference points?
  • Does this issue have zero to low barrier of entry?
  • How can the assignee reach out to you for help?

For more details on the requirements of such an issue, please see here and ensure that they are met.

If this request no longer meets these requirements, the label can be removed by commenting with the /remove-good-first-issue command.

In response to this:

/good-first-issue

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Aug 16 '23 23:08 k8s-ci-robot

/assign

eshwarhs avatar Aug 17 '23 01:08 eshwarhs

/assign

Ithrael avatar Aug 17 '23 05:08 Ithrael

/assign

itsajay1029 avatar Aug 17 '23 05:08 itsajay1029

/triage accepted

brianpursley avatar Sep 13 '23 16:09 brianpursley

/assign

vtrenton avatar Dec 05 '23 18:12 vtrenton

/assign

TessaIO avatar Apr 26 '24 09:04 TessaIO