Skip to content

adopt-or-create adoption policy for ResourceAdoption alpha feature #2406

@havard024

Description

@havard024

Creating this issue to start an open discussion on UX for the adopt-or-create adoption policy for ResourceAdoption alpha feature.

Link to ResourceAdoption alpha feature current documentation https://aws-controllers-k8s.github.io/community/docs/user-docs/features/#resourceadoption

Reference to slack discussion regarding this issue
https://kubernetes.slack.com/archives/C0402D8JJS1/p1740081894642539

Description of our use case / possible user experience:

For some aws resources that either take a long time to create, eg cloudfront distributions or other aws resources where we want to retain data, like s3 buckets or rds, we would like to keep the created resources even if the manifests defining them are deleted in kubernetes.

Use cases

  • when developing kro stacks with ack

when I develop stacks using kro and ack, I often delete / recreate the stack, particularly after I think I'm done and want to see how kro behaves when there are no resources in place. If this stack contains a cloudfront distribution and I currently work on resources that depend on that distribution, if I were to delete the stack, I need to wait for the cloudfront distribution to be created again which slows down my development cycle.

That said, I might not need adopt-or-create for this use case, if I instead could delete the resources I want to create manually from k8s and trigger a kro reconciliation of the stack.

  • disaster recovery / accidental deletion of k8s manifests / gitops reconciliation

to be able to reuse the manifests used to create the aws resources that has been retained

Metadata

Metadata

Assignees

Labels

area/adoption-annotationIssues or PRs related to ACK Adoption by Annotation featurearea/runtimeIssues or PRs as related to controller runtime, common reconciliation logic, etckind/featureCategorizes issue or PR as related to a new feature.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions