Skip to content

Wrong fish completion for debug #1861

Description

@delreluca

What happened:

When using the fish completions kubectl debug suggests resource types (e.g., pods). Once pods is accepted, pod names are suggested. However, the resulting command is not valid, instead it should just be kubectl debug <pod-name>

What you expected to happen:

After kubectl debug suggest pod names.

How to reproduce it (as minimally and precisely as possible):

Run kubectl completion fish | source in fish (or have it in your completions directory), then type kubectl debug . Hit tab.

Anything else we need to know?:

Tried on fish 4.8.0. It's still a useful suggestion after deleting pods manually.

Environment:

  • Kubernetes client and server versions (use kubectl version): Client 1.36.2, server 1.34.4
  • Cloud provider or hardware configuration: should not be not relevant
  • OS (e.g: cat /etc/os-release): WSL2 Arch Linux

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions