Skip to content

[rds-controller] Finalizers keep telling DBCluster to remove availabilityZones #2486

@lanandra

Description

@lanandra

Describe the bug
When I ran kubectl diff, finalizers will show that any availability zone that not defined in the manifest will be removed. Although previously it has been applied many times

finalizers:
   - finalizers.rds.services.k8s.aws/DBCluster
-  generation: 14
+  generation: 15
@@ -22,7 +22,6 @@
   availabilityZones:
   - us-east-2b
   - us-east-2c
-  - us-east-2a
   backupRetentionPeriod: 3
   copyTagsToSnapshot: false
   databaseName: my-database

Steps to reproduce

  1. After check the diff, tried to apply the manifest
  2. After manifest has been applied, tried to run the diff again
  3. kubectl diff still show that finalizers in DBCluster will remove the same availability zone that not defined in the manifest

Expected outcome
Finalizers will not show the same deletion output in the diff after it has been applied

Environment

  • Kubernetes version: 1.32
  • Using EKS (yes/no), if so version? yes, v1.32.3-eks-bcf3d70
  • AWS service targeted (S3, RDS, etc.): RDS

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.service/rdsIndicates issues or PRs that are related to rds-controller.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions