-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(cluster-providers): Updating node group fails #484
Comments
Capacity type change and a few other changes to the nodegroup are not allowed in update mode, so the behavior you outlined is correct, albeit inconvenient and forces customers to supply an alternate nodegroup name, which is a workaround for this issue. The recommendation to not supply the name may be reasonable, although I recall the change to supply a meaningful nodegroup name was in response to a github issue as well. We will assess. |
I agree with the previous issue, the generated names aren't that nice. Also it's really nice to have constructs such as |
@pflorek Please let us know if this issue can be closed? |
This issue is impacting us as well. Is it possible to have a consistent name generated based on node group configurations and have it changed when certain parameters change? e.g At the moment when An alternative would be to generate a hash from values of parameters that trigger a replacement (e.g diskSize, InstanceType etc) and append it to the automatically generated name i.e This way when any of those parameters change, we automatically generate a new name. |
Describe the bug
When trying to update
MngClusterProvider
's NodeGroup i.e. changing the capacity type for different deployment targets it's fails:Resource handler returned message: "NodeGroup already exists with name Cluster and cluster name Cluster
The reason is that CDK/CFN needs to execute an update replace of the NodeGroup. Doing so it tries first to create a new NodeGroup and then to delete the old one. By creating the new one CFN get's a naming conflict
Expected Behavior
Changes to the node group will just be executed and by default CDK/CFN is managing the resource ids and names.
Current Behavior
cdk-eks-blueprints is managing the nodegroup's id/name and forces the user to update/alternate the nodegroup's id/name
Reproduction Steps
Create a MngClusterProvider deploy, change capacity type, deploy -> failed stack
Possible Solution
Avoid setting the
NodeGroupName
and let CDK/CFN manage it by defaultlib/cluster-providers/generic-cluster-provider.ts
Let the user decide on his own, if he wishes to override
Additional Information/Context
No response
CDK CLI Version
2.37.1
EKS Blueprints Version
1.2.0
Node.js Version
18.7.0
Environment details (OS name and version, etc.)
MacOS
Other information
No response
The text was updated successfully, but these errors were encountered: