-
Notifications
You must be signed in to change notification settings - Fork 925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could we add a shorthand for --field-selector in kubectl? #1649
Comments
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
It looks reasonable. However, I'm wondering whether this was intentional decision due to some reasons. |
/triage accepted |
This is totally parsed by the program, as opposed to the file path that is usually parsed by the kernel/operating system. |
Thank you all for your feedback.
@ardaguclu, I checked kubernetes/kubernetes#50140 which added the flag and didn't find any discussion about the shorthand, I guess it wasn't intentional.
@mpuckett159, as @apelisse explains, this is parsed by the program so the flag names are case-sensitive, otherwise the command I created kubernetes/kubernetes#127345 to implement it, could you please take a look? |
/kind feature |
Apologies I misunderstood and we need to wait for more evidence for this before accepting. This issue should be fore gathering more feedback. Sorry for the churn/misunderstanding. |
What happened?
I’m wondering if the
--field-selector
option is used frequently enough to justify a shorthand like-F
. In our extension API server, we have a field that users need to specify to limit objects within a particular scope, but--field-selector
feels a bit lengthy to type compared to the-l
shorthand for label selectors. Would it make sense to add a shorthand for--field-selector
?Creating the issue to gather some feedback before introducing such a shorthand as suggested by @soltysh.
The original thread in sig-cli slack channel: https://kubernetes.slack.com/archives/C2GL57FJ4/p1725613426106679
cc @soltysh @apelisse
/sig cli
What did you expect to happen?
A shorthand can be used to filter objects by field selector, such as
kubectl get FOO -F .spec.region=BAR
.How can we reproduce it (as minimally and precisely as possible)?
NONE
Anything else we need to know?
No response
Kubernetes version
Cloud provider
OS version
Install tools
Container runtime (CRI) and version (if applicable)
Related plugins (CNI, CSI, ...) and versions (if applicable)
The text was updated successfully, but these errors were encountered: