kubernetes / kubernetes/kubectl

kubectl completion fish - label support required

Open
#1,870 2 comments 0 reactions 0 assignees View on GitHub
kind/feature priority/backlog triage/accepted
Dominant language
Go
Stars
3.3k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

**What would you like to be added**:

When running fish shell, currently completions do not support label support yet.

For example:

`kubectl get pods -l app=` # tab tab

I need a feature, where you can press tab tab when doing for example get pods or other commands and label suggestions are automatically completed. I don't know if this is already implemented.

Running

`kubectl completion fish` as far as I understand does not yet support it.

Can it be implemented?

**Why is this needed**:

Comfortable function, time saving.

Contributor guide

Open the contributing guide

Research direction

Start by running `kubectl completion fish` and tracing how fish completions handle `kubectl get pods -l app=`. Compare the generated completion behavior for label values across get and other commands; done means pressing Tab offers label suggestions in fish where label selectors are accepted.

Written by the indexing model from the issue text.

Assessment

Tech stack
fish, go
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.