Skip to content
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

Label selector argument #103

Merged
merged 3 commits into from
Jul 12, 2023
Merged

Label selector argument #103

merged 3 commits into from
Jul 12, 2023

Conversation

LeaveMyYard
Copy link
Contributor

Added label selector to filter out what exact objects to scan, a proposed by @dohnto-s1

Added as --selector, because -l (the same as in kubectl) is already occupied

Will close #62

@LeaveMyYard LeaveMyYard self-assigned this Jul 11, 2023
selector: Optional[str] = typer.Option(
None,
"--selector",
help="Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2). Matching objects must satisfy all of the specified label constraints.",
Copy link

@dohnto-s1 dohnto-s1 Jul 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The -l bit is confusing as it has different semantics in krr.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, help is wrong - I removed -l

@dohnto-s1
Copy link

Otherwise LGTM, I verified it for my use case and it works as expected.

@LeaveMyYard LeaveMyYard removed the request for review from Avi-Robusta July 12, 2023 15:11
@LeaveMyYard LeaveMyYard merged commit 06582e1 into main Jul 12, 2023
1 check passed
@LeaveMyYard LeaveMyYard deleted the label-selector branch July 12, 2023 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Restrict workload selection
2 participants