kubernetes / kubernetes/kubectl

Completion does not work for `create job --from`

Open
#1,399 8 comments 0 reactions 1 assignee Claimed by @Michael-Xing View on GitHub
kind/feature lifecycle/rotten needs-triage priority/backlog
Dominant language
Go
Stars
3.3k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

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

Completion currently does not work at all after a `--from` flag. Immediately after the flag, it only suggests filenames (which is incorrect), and not resource types. After a resource type and a slash, it doesn't suggest anything (instead of the expected behavior of suggesting resource names)

**Why is this needed**:

`create --from` is used to manually trigger CronJobs, I'm not aware of other use cases but I'm sure they exist. It's a bit of a pain to have to do an extra `kubectl get` to get the exact name and then copy/paste or type it out, when tab completion usually enables a much faster flow

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.