-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: align filter for kubectl.GetPodsNodes() on kubectl.GetPodsIPs()
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>
- Loading branch information
Showing
3 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters