-
Notifications
You must be signed in to change notification settings - Fork 74
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
Replace zones flag with additional filter #90
Replace zones flag with additional filter #90
Conversation
Fix WARNING: Flag `--zones` is deprecated. Use `--filter="zone:( ZONE ... )"` instead. For example `--filter="zone:( europe-west1-b europe-west1-c )"`.
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: azylinski The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Welcome @azylinski! |
Hi @azylinski. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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/test-infra repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deferring to Jeff, I am not really familiar with the janitors
/ok-to-test
/uncc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you tested this change locally? Our automated testing doesn't really test the janitor.
Does this work with all resource types? I'm concerned whether there are any that only support --zones
and not specifying the zone
in the filter.
/ok-to-test
if resource.condition == 'zone' and resource.name not in ['sole-tenancy', 'network-endpoint-groups']: | ||
if len(filt) > 0: | ||
filt.append(' AND ') | ||
filt.append('zone=(%s)' % ','.join(ZONES)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these supposed to be comma-separated or space-separated?
@@ -256,14 +256,17 @@ def collect(project, age, resource, filt, clear_all): | |||
if resource.name == 'sinks' and not clear_all: | |||
return col | |||
|
|||
if resource.condition == 'zone' and resource.name not in ['sole-tenancy', 'network-endpoint-groups']: | |||
if len(filt) > 0: | |||
filt.append(' AND ') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't filt
a string? don't you want +=
here (and the next line)?
/cc @chemikadze |
@ixdy: GitHub didn't allow me to request PR reviews from the following users: chemikadze. Note that only kubernetes-sigs members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
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/test-infra repository. |
/close I think this was obsoleted by #98. |
@ixdy: Closed this PR. In response to this:
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/test-infra repository. |
Fix WARNING:
Flag
--zones
is deprecated. Use--filter="zone:( ZONE ... )"
instead.For example
--filter="zone:( europe-west1-b europe-west1-c )"
.