bumpy-laptop-30846
11/27/2024, 5:09 PMpulumi-eks v3
. ManagedNodeGroup example crashes when I create k8s ressources with parent:cluster
as opts. Also in my program, having some dependsOn
causes some issues, like the resource not being created at all and completely ignored.
Do some of you have noticed these kind of issues?quick-house-41860
11/27/2024, 10:19 PMCluster
component from outside of the component (by setting the cluster as the parent of the ManagedNodeGroup)?
Adding a child to the component outside of the component can lead to cyclical dependencies and/or promise leaks. You could workaround that by not setting a parent, or setting the parent to parent: cluster.eksCluster.id
instead. (see)
The issue with dependsOn definitely sounds odd, do you mind opening a GitHub issue here with a minimal repro so we can further dig into it? Thanks!bumpy-laptop-30846
11/28/2024, 3:37 PMparent: cluster.eksCluster.id
does not work because of a type issue.
The cluster as parent was working fine with pulumi eks v1
, is there a change?
For the dependsOn
I stil have to reproduce it in the example.quick-house-41860
12/02/2024, 7:38 AMid
sneaked its way in there, you could try parent: cluster.eksCluster
.
Just out of curiosity, what's the reason for adding childs to the cluster?
Previously pulumi-eks was just a regular npm package for nodejs, not a provider, while the other languages where already exposed via a multi-language component provider. This discrepancy had several drawbacks (e.g. inaccurate docs), due to that we aligned all the languages in v3 (see migration guide).
We do not recommend parenting resources to components from outside of them as it can lead to these cyclical dependencies / promise leaks you're seeing. Without diving deeper I'm suspecting that it worked previously because there was no provider involved and the component was only local to your program.