Skip to content

Tab completion breaks if using recommended alias kubectl='minikube kubectl --' #12938

Closed
@vcc-huf

Description

  1. install minkube
  2. add alias kubectl='minikube kubectl --' to .bashrc
  3. add source <(kubectl completion bash) to .bashrc

result:
only the commands get tab-completed, nothing after that.

the underlying issue is this:

$ minikube kubectl __completeNoDesc get p
Error: flags cannot be placed before plugin name: --cluster

this works however:

~/.minikube/cache/linux/v1.22.3/kubectl __completeNoDesc get p

related to this: kubernetes/kubectl#884

Metadata

Assignees

No one assigned

    Labels

    cmd/kubectlIssues with the "kubectl" commandkind/improvementCategorizes issue or PR as related to improving upon a current feature.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.priority/backlogHigher priority than priority/awaiting-more-evidence.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions