Skip to content

Conversation

vijaydandu
Copy link
Contributor

@vijaydandu vijaydandu commented Sep 13, 2025

fixes aws-controllers-k8s/community#2625

Description of changes:

  • adds explicit EnableCARM flag to enable/disable Cross Account Resource Management

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ack-prow ack-prow bot requested review from a-hilaly and jlbutler September 13, 2025 00:11
Copy link

ack-prow bot commented Sep 13, 2025

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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@ack-prow ack-prow bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Sep 13, 2025
@a-hilaly
Copy link
Member

/ok-to-test

@ack-prow ack-prow bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Sep 13, 2025
@vijaydandu
Copy link
Contributor Author

/retest

Copy link
Member

@a-hilaly a-hilaly left a 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

Comment on lines 227 to 230
// 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 {
Copy link
Member

@a-hilaly a-hilaly Sep 14, 2025

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?

Copy link
Contributor Author

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.

@vijaydandu
Copy link
Contributor Author

/retest

1 similar comment
@vijaydandu
Copy link
Contributor Author

/retest

Copy link

ack-prow bot commented Sep 14, 2025

@vijaydandu: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
verify-attribution a11c748 link false /test verify-attribution

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.

Copy link
Member

@a-hilaly a-hilaly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tomreece
Copy link

tomreece commented Sep 15, 2025

Would it be worthwhile to name the new flag without an acronym to avoid confusion? Or does everyone know what CARM is?

enable-cross-account-resource-management

There are already some other long flag names, like reconcile-resource-max-concurrent-syncs and enable-adopted-resource-reconciler so even though my suggested name is long, at least it's explicit.

What do you think @vijaydandu ?

@vijaydandu
Copy link
Contributor Author

Would it be worthwhile to name the new flag without an acronym to avoid confusion? Or does everyone know what CARM is?

enable-cross-account-resource-management

There are already some other long flag names, like reconcile-resource-max-concurrent-syncs and enable-adopted-resource-reconciler so even though my suggested name is long, at least it's explicit.

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.

@rushmash91
Copy link
Member

this looks good to me, thanks @vijaydandu !
/lgtm

@ack-prow ack-prow bot added the lgtm Indicates that a PR is ready to be merged. label Sep 15, 2025
Copy link

ack-prow bot commented Sep 15, 2025

[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:
  • OWNERS [a-hilaly,rushmash91]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ack-prow ack-prow bot merged commit 2130565 into aws-controllers-k8s:main Sep 15, 2025
7 of 8 checks passed
@vijaydandu vijaydandu deleted the feat/enableordisablecarmviaconfig branch September 15, 2025 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ACK controllers crashloop on namespace scope

5 participants