You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To get a reference to an existing cluster, one has to use Cluster.FromClusterAttributes() returning ICluster.
To add a Fargate profile one needs to supply Cluster and not ICluster, to either Cluster.AddFargateProfile() or to new FargateProfileProps {}.
Reproduction Steps
See above.
What did you expect to happen?
To be able to combine usage of Cluster.FromClusterAttributes() to find an existing EKS cluster, and cluster.AddFargateProfile() to add Fargate to it.
Ability to add Fargate profile to an existing EKS cluster.
What actually happened?
Can't pass ICluster typed variable returned by Cluster.FromClusterAttributes() to either Cluster.AddFargateProfile() or to new FargateProfileProps {}.
You're going to have to find another way to do what you are currently trying to accomplish, which is what the guidance issue you linked is for! I've still been keeping an eye on it, but I've been unable to find the time to help figure out a workaround. It is something I have been trying to get back to, and I should respond within the next week or so
I didn't realize that, thank you, @peterwoodworth. That's unfortunate though: if I can add a K8s namespace to an existing EKS cluster via CDK, not being able to add corresponding Fargate profile for that namespace makes no sense as it pretty much prohibits using all-fargate EKS clusters with CDK after cluster creation.
I'm going to close this issue and move our discussion back over to the guidance issue #13153. I will try to help you guys out by the end of next week, as this will take me some time 😛
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
To get a reference to an existing cluster, one has to use
Cluster.FromClusterAttributes()
returningICluster
.To add a Fargate profile one needs to supply
Cluster
and notICluster
, to eitherCluster.AddFargateProfile()
or tonew FargateProfileProps {}
.Reproduction Steps
See above.
What did you expect to happen?
To be able to combine usage of Cluster.FromClusterAttributes() to find an existing EKS cluster, and cluster.AddFargateProfile() to add Fargate to it.
Ability to add Fargate profile to an existing EKS cluster.
What actually happened?
Can't pass ICluster typed variable returned by Cluster.FromClusterAttributes() to either Cluster.AddFargateProfile() or to new FargateProfileProps {}.
Environment
Other
Related to #13153
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: