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

[Bug]: Secret Manager Provider - existing AWS secret is not reconciled/imported by provider #1565

Open
1 task done
pablomdc opened this issue Nov 14, 2024 · 1 comment
Open
1 task done
Labels
bug Something isn't working needs:triage

Comments

@pablomdc
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Affected Resource(s)

secretsmanager.aws.upbound.io/v1beta1

Resource MRs required to reproduce the bug

No response

Steps to Reproduce

Create a secret in a cluster with managementPolicies * (star), simulating a cluster migration, apply same K8s Managed Resource in another cluster

What happened?

Upon 2nd cluster apply, provider cannot reconcile/import the resource, attempting to recreate secret (instead of importing) ResourceExistsException: The operation failed because the secret blabla already exists. []}]

Relevant Error Output Snippet

No response

Crossplane Version

v1.16

Provider Version

v1.17.0

Kubernetes Version

No response

Kubernetes Distribution

No response

Additional Info

Doing same action on other resource, like SQS or SNS, it works properly, providers recognize upon spec provider information, and import the resource / reconcile, automatically adding crossplane.io/external-name annotation.

For secret manager, the only way to make it importing the resource is by manually adding the annotation with the ARN ref, which makes the migration from cluster to cluster very complex from our side... It's expected that Secret Manager will be able to discover the resources and reconcile, automatically, if having policy "Observe" included (* star includes it)

@lironcomonday
Copy link

any updates regarding it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs:triage
Projects
None yet
Development

No branches or pull requests

2 participants