pulumi / pulumi-eks

A Pulumi component for easily creating and managing an Amazon EKS Cluster
https://www.pulumi.com/registry/packages/eks/
Apache License 2.0
171 stars 82 forks source link

`Addon` component should fetch the right addon version to use #1413

Open flostadler opened 1 month ago

flostadler commented 1 month ago

Right now users have to find the right addon version to use with the cluster when using the Addon component. Otherwise it'll use the default version and never update. This can be problematic when updating the cluster and the addons are no longer compatible with the new cluster version.

The component should look up the correct version and set it by default. This can differentiate between the latest and EKS recommended version.

const addonVersion = aws.eks.getAddonVersionOutput(
                {
                    addonName: "vpc-cni",
                    kubernetesVersion: clusterVersion,
                    mostRecent: true, // set to false to use the recommended version
                },
            ).version;