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

Add a new flag for enabling/disabling AdoptedResource reconciler #144

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

a-hilaly
Copy link
Member

This commit adds a new feature flag enable-adopted-resource-reconciler to
allow enabling or disabling the AdoptedResource reconciler. The reconciler
is now only started if this flag is set to true.

This lays the groundwork for a new way to adopt resources, via an adopted
resource annotation instead of using the AdoptedResource custom resource.

This change provides more flexibility in choosing whether users want to
use the AdoptedResource CRD or the adoption annotation to adopt
resources.

Signed-off-by: Amine Hilaly hilalyamine@gmail.com

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

This commit adds a new feature flag `enable-adopted-resource-reconciler` to
allow enabling or disabling the `AdoptedResource` reconciler. The reconciler
is now only started if this flag is set to true.

This lays the groundwork for a new way to adopt resources, via an adopted
resource annotation instead of using the `AdoptedResource` custom resource.

This change provides more flexibility in choosing whether users want to
use the AdoptedResource CRD or the adoption annotation to adopt
resources.

Signed-off-by: Amine Hilaly <hilalyamine@gmail.com>
@ack-prow ack-prow bot requested review from jlbutler and jljaco March 25, 2024 19:35
@ack-prow ack-prow bot added the approved label Mar 25, 2024
Comment on lines +131 to +135
flag.BoolVar(
&cfg.EnableAdoptedResourceReconciler, flagEnableAdoptedResourceReconciler,
true,
"Enable the AdoptedResource reconciler.",
)
Copy link
Member Author

@a-hilaly a-hilaly Mar 25, 2024

Choose a reason for hiding this comment

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

Keeping the default to true for now. We should start thinking about deprecation and removal dates, once the adoption via annotation is supported

@jlbutler
Copy link

/lgtm

@ack-prow ack-prow bot added the lgtm Indicates that a PR is ready to be merged. label Mar 25, 2024
Copy link

ack-prow bot commented Mar 25, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: a-hilaly, jlbutler

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ack-prow ack-prow bot merged commit f67ec48 into aws-controllers-k8s:main Mar 25, 2024
5 checks passed
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants