aws-controllers-k8s / community

AWS Controllers for Kubernetes (ACK) is a project enabling you to manage AWS services from Kubernetes
https://aws-controllers-k8s.github.io/community/
Apache License 2.0
2.36k stars 248 forks source link

Add support for elasticache CacheClusters #2079

Open jessectl opened 1 month ago

jessectl commented 1 month ago

Describe the bug No CRD to create a redis cluster?

Steps to reproduce

apiVersion: elasticache.services.k8s.aws/v1alpha1
kind: CacheCluster
metadata:
  name: my-redis-cluster
  namespace: kube-system
spec:
  cacheNodeType: cache.t4g.micro
  numCacheNodes: 1
  engine: redis
  engineVersion: "7.1"
  cacheSubnetGroupName: test
  securityGroupIDs:
    - sg-0e899eb4268ec8427
kubectl get crds | grep elasticache                 

cacheparametergroups.elasticache.services.k8s.aws         2024-05-28T15:58:40Z
cachesubnetgroups.elasticache.services.k8s.aws              2024-05-28T15:58:40Z
replicationgroups.elasticache.services.k8s.aws                  2024-05-28T15:58:41Z
snapshots.elasticache.services.k8s.aws                             2024-05-28T15:58:41Z
usergroups.elasticache.services.k8s.aws                           2024-05-28T15:58:42Z
users.elasticache.services.k8s.aws                                    2024-05-28T15:58:42Z

Expected outcome A concise description of what you expected to happen.

Environment

a-hilaly commented 1 month ago

CacheCluster is not supported, yet. To generate the CRD and controller implementation we'll have to comment out https://github.com/aws-controllers-k8s/elasticache-controller/blob/main/generator.yaml#L243 and regenerate the elasticache controller