Unable to delete DBInstance in AWS using deletion policy delete
on my DBInstance CRD
#2046
Labels
area/deletion-policy
Issues or PRs related to deletion policy.
kind/bug
Categorizes issue or PR as related to a bug.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
priority/critical-urgent
Highest priority. Must be actively worked on as someone's top priority right now.
Describe the bug
I am installing my RDS controller using https://github.com/aws-controllers-k8s/ack-chart (image: public.ecr.aws/aws-controllers-k8s/rds-controller:1.2.1) with the following values:
I include
deletionPolicy: retain
for general safety. I provision a DBInstance using the following file:I would like to override the deletion policy on the controller, such that when I delete this DBInstance, it deletes the resource in AWS. Based on these docs, I tried adding a
services.k8s.aws/deletion-policy: delete
annotation on by DBInstance CRD first, then deleting it, but doing so still does not clean up the DBInstance in AWS.I was able to achieve the behavior I desired by restarting the RDS controller after I add the annotation, and then deleting, after which I saw the resource delete in AWS. I believe the bug here is that the CRD does not immediately reconcile after I add this annotation.
Steps to reproduce
Install the chart
Expected outcome
A concise description of what you expected to happen.
Environment
1.24
yes, 1.24
RDS
The text was updated successfully, but these errors were encountered: