Support installing "latest" EKS addon
#5,184 opened on Oct 25, 2024
Repository metrics
- Stars
- (723 stars)
- PR merge metrics
- (PR metrics pending)
Description
/kind feature
Describe the solution you'd like
Currently when you specify EKS addons to be installed in AWSManagedControlPlane you need to specify the specific version of the addon. It would also be good to support installing the latest supported version of the addon.
So currently you need to do:
spec:
addons:
- conflictResolution: overwrite
name: vpc-cni
version: v1.18.1-eksbuild.3
But it would also be nice to support the following:
spec:
addons:
- conflictResolution: overwrite
name: vpc-cni
version: latest
If latest is specified then we need to query for the latest supported version for the cluster/k8s version (using DescribeAddonVersions) and use that.
Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]
Environment:
- Cluster-api-provider-aws version:
- Kubernetes version: (use
kubectl version): - OS (e.g. from
/etc/os-release):