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

test: align filter for kubectl.GetPodsNodes() on kubectl.GetPodsIPs() #16398

Merged
merged 1 commit into from Jun 11, 2021

Conversation

qmonnet
Copy link
Member

@qmonnet qmonnet commented Jun 2, 2021

kubectl.GetPodsNodes()'s usage is very similar to kubectl.GetPodsIPs()'s, but the latter always adds a -l option to the generated kubectl command, avoiding the caller to pass it through as part of the filter argument.

Let's align kubectl.GetPodsNodes(), for consistency. Having the -l in the function makes the calls more readable. It prevents the use of other selectors (e.g. --field-selector), but the helper is only used with label queries at the moment.

@qmonnet qmonnet added area/CI-improvement Topic or proposal to improve the Continuous Integration workflow release-note/misc This PR makes changes that have no direct user impact. labels Jun 2, 2021
@qmonnet qmonnet requested a review from a team as a code owner June 2, 2021 14:53
@qmonnet qmonnet requested review from a team, nebril, joamaki and jrajahalme June 2, 2021 14:53
@qmonnet
Copy link
Member Author

qmonnet commented Jun 2, 2021

test-me-please

@qmonnet
Copy link
Member Author

qmonnet commented Jun 3, 2021

test-me-please

test/helpers/kubectl.go Outdated Show resolved Hide resolved
kubectl.GetPodsNodes() usage is very similar to kubectl.GetPodsIPs(),
but the latter always adds a "-l " option to the generated kubectl
command, avoiding the caller to pass it through as part of the filter
argument.

Let's align kubectl.GetPodsNodes(), for consistency. Having the "-l " in
the function makes the calls more readable. It prevents the use of other
selectors (e.g. "--field-selector"), but the helper is only used with
label queries at the moment.

Signed-off-by: Quentin Monnet <quentin@isovalent.com>
@qmonnet
Copy link
Member Author

qmonnet commented Jun 4, 2021

test-me-please

@qmonnet qmonnet added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jun 11, 2021
@nebril nebril merged commit 2d53c16 into cilium:master Jun 11, 2021
@qmonnet qmonnet deleted the pr/GetPodsNodes_filter branch June 11, 2021 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI-improvement Topic or proposal to improve the Continuous Integration workflow ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants