Skip to content

Label selector argument - #103

Merged
LeaveMyYard merged 3 commits into
mainfrom
label-selector
Jul 12, 2023
Merged

LeaveMyYard merged 3 commits into
mainfrom
label-selector

Conversation

@LeaveMyYard

Copy link
Copy Markdown
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 requested a review from Avi-Robusta July 11, 2023 13:34
@LeaveMyYard LeaveMyYard self-assigned this Jul 11, 2023
Comment thread robusta_krr/main.py Outdated
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.",

@dohnto-s1 dohnto-s1 Jul 12, 2023 •

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown

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
@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