feat(eks): vendor AWS's add-on version catalog for every supported Kubernetes version (#6735)

This commit is contained in:
Robin Baeckman authored and GitHub committed 2026-10-30 07:21:01 -04:00
1 parent 804b503a33
commit 07f2d62c17
9 files changed
+1045 -383

No files matched your search

@@ -158,8 +158,13 @@ public class EksAddonCatalog {
}
private static AddonInfo filterByK8s(AddonInfo addon, String k8s) {
// Like AWS, a version-filtered answer keeps only that version's compatibility: clients such
// as Terraform's aws_eks_addon_version take the first entry flagged default.
List<AddonVersionInfo> filtered = addon.addonVersions().stream()
.filter(v -> isCompatible(v, k8s, false))
.map(v -> new AddonVersionInfo(v.addonVersion(), v.architecture(),
v.compatibilities().stream().filter(c -> k8s.equals(c.clusterVersion())).toList(),
v.requiresConfiguration(), v.requiresIamPermissions()))
.toList();
return filtered.isEmpty() ? null
: new AddonInfo(addon.addonName(), addon.type(), filtered, addon.publisher(), addon.owner());