AWSManagedControlPlane can only install one EKS Addon at a time #2911
Labels
area/provider/eks
Issues or PRs related to Amazon EKS provider
kind/bug
Categorizes issue or PR as related to a bug.
lifecycle/active
Indicates that an issue or PR is actively being worked on by a contributor.
priority/critical-urgent
Highest priority. Must be actively worked on as someone's top priority right now.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
/kind bug
It looks like the Add-on manager has a bug where it will only install the last add-on you specific in the config spec of a AWSManagedControlPlane. This means you cannot use more than one EKS Addon at a time currently.
What steps did you take and what happened:
![image](https://user-images.githubusercontent.com/12645162/140268717-fb239563-bb23-4d5e-aad7-cd24b7e6c4b4.png)
- Note how only one is installed.vpc-cni
coredns
has been uninstalled, andvpc-cni
has replaced itIf you check the spec in cluster, all are in the spec, only the last one is in the status as active, and the EKSAddonsConfigured condition is complete.
What did you expect to happen:
To be able to install all 3 EKS add ons.
Anything else you would like to add:
I suspect there is a nasty loop/iterator bug somewhere in
cluster-api-provider-aws/pkg/eks/addons/plan.go
Line 48 in 4274a5a
As looking at the logs with
-v=3
it shows that going into the function it expects 3 desired add ons, and 1 installed. But the number of procs that come out is 0.Environment:
kubectl version
): N/A/etc/os-release
): N/AThe text was updated successfully, but these errors were encountered: