Skip to content

Bug: ACK ElastiCache - Security Group Updates Not Applied #2455

@edwanyoike

Description

@edwanyoike

Describe the bug
The ACK ElastiCache controller does not correctly apply updates to the securityGroupIDs field of a CacheCluster resource after the cluster has been initially created. Changes, whether adding or removing Security Group IDs from the manifest, are not reflected on the corresponding AWS ElastiCache cluster.

Steps to reproduce

  1. Apply a CacheCluster manifest without the securityGroupIDs field defined to create an ElastiCache cluster.

  2. After the cluster is created successfully, update the CacheCluster manifest to include one or more securityGroupIDs. Apply the updated manifest. Observe that the Security Group is not added to the ElastiCache cluster in AWS.

  3. Alternatively, apply a CacheCluster manifest with the securityGroupIDs field defined to initially create the cluster with Security Groups.

  4. After the cluster is created successfully, update the CacheCluster manifest to remove the securityGroupIDs field. Apply the updated manifest. Observe that the Security Group(s) remain associated with the ElastiCache cluster in AWS.

Expected outcome
When the securityGroupIDs field in the CacheCluster manifest is updated (either by adding, removing, or changing IDs) and the manifest is applied, the ElastiCache ACK controller should reconcile this change and update the associated AWS ElastiCache cluster to match the desired state specified in the manifest. This includes adding Security Groups if they are added to the manifest, and removing them if they are removed from the manifest.

Environment

Kubernetes version: 1.32

Using EKS (yes/no), if so version?: yes, eks.9

AWS service targeted (S3, RDS, etc.): ElastiCache

ElastiCache ACK version: 0.2.4

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.service/elasticacheIndicates issues or PRs that are related to elasticache-controller.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions