kubernetes / kubernetes/kubectl
Completion does not work for `create job --from`
- 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
Assessment
This issue has not been assessed yet.