Skip to content

Elastic Cache Controller: Add networkType and ipDiscovery fields to ReplicationGroup spec for IPv6/Dual-Stack support #2565

@gappan

Description

@gappan

Is your feature request related to a problem?
I cannot create an AWS ElastiCache ReplicationGroup with a specific network type (e.g. dualstack or ipv6) using the ACK ElastiCache controller.
The underlying AWS ElastiCache CreateReplicationGroup API supports a NetworkType and IPDiscovery parameters, but these fields are not exposed in the ReplicationGroup CRD spec in the ACK controller.

Describe the solution you'd like
would like to see networkType and ipDiscovery fields added to the spec of the ReplicationGroup custom resource. These fields should directly map to their corresponding parameters in the AWS ElastiCache API.

networkType: Should accept ipv4, ipv6, or dual_stack.

ipDiscovery: Should accept ipv4 or ipv6. This field is required by the AWS API when networkType is set to dualstack.

Example CRD

apiVersion: elasticache.services.k8s.aws/v1alpha1
kind: ReplicationGroup
metadata:
  name: test
spec:
  engine: "redis"
  engineVersion: "7.1"
  nodeType: "cache.m7g.large"
  numNodeGroups: 1
  replicasPerNodeGroup: 2
  cacheSubnetGroupName: "my-subnet-group"
  
  # Proposed new fields
  networkType: "dual_stack"
  ipDiscovery: "ipv6"
  
  # ... other required fields

Describe alternatives you've considered
A description of any alternative solutions or features you've considered.

Metadata

Metadata

Assignees

Labels

kind/new-fieldCategorizes issue or PR as related to a new fieldservice/elasticacheIndicates issues or PRs that are related to elasticache-controller.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions