-
Notifications
You must be signed in to change notification settings - Fork 181
feat: adds EnableCARM flag to prevent watching namespaces in ns scope #199
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
feat: adds EnableCARM flag to prevent watching namespaces in ns scope #199
Conversation
Hi @vijaydandu. Thanks for your PR. I'm waiting for a aws-controllers-k8s 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. |
/ok-to-test |
/retest |
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.
Neat, thank you @vijaydandu ! i have one comment below
// The caches are only used for cross account resource management. If the | ||
// controller is not configured to watch multiple namespaces, then we don't | ||
// need to run the caches. | ||
if len(namespaces) == 0 || len(namespaces) >= 2 { | ||
if cfg.EnableCARM { |
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.
i'm not opposed to this, but if you want to allow users to enable CARM even when they're on single namespace mode, should we update the comment above?
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.
That totally makes sense. I have updated it to match the change.
/retest |
1 similar comment
/retest |
@vijaydandu: The following test failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
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.
Thank you @vijaydandu !
Would it be worthwhile to name the new flag without an acronym to avoid confusion? Or does everyone know what CARM is?
There are already some other long flag names, like What do you think @vijaydandu ? |
While I am not opposed to it, I like it to be short and crisp. Also, the docs already popularized the acronym. Will leave it to @a-hilaly's discretion. |
this looks good to me, thanks @vijaydandu ! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: a-hilaly, rushmash91, vijaydandu The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
fixes aws-controllers-k8s/community#2625
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.