Closed nonatomiclabs closed 1 year ago
This pull request has been linked to Shortcut Story #135611: [EKS] Macro "Resize cluster" returns too early when deleting nodegroup.
@marchelleboid good comments indeed, I'm just not sure how to implement this, could you take care of it? 🙂
The code Marc added looks good: I installed the new version of the plugin on a fresh instance and can confirm that I could see the two checkboxes and that they behaved as expected. So, LGTM ✅ (I can't "approve" the PR as I was the original author of the change.)
This PR fixes a very small bug in the "Resize cluster" macro: when resizing a nodegroup to have 0 nodes, we don't wait until the nodegroup is effectively deleted, but we return once the deletion of the CloudFormation stack is initiated. This might be misleading, so this PR adds the
--wait
flag to theeksctl delete nodegroup
command and to theeksctl scale nodegroup
command, to wait until resources are completely deleted or resized.