pulumi-eks icon indicating copy to clipboard operation
pulumi-eks copied to clipboard

Ability to Ignore Changes on `desiredSize` in eks.ManagedNodeGroup

Open zbuchheit opened this issue 1 year ago • 1 comments

Hello!

  • Vote on this issue by adding a 👍 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

Context

Currently, any change to the desiredSize of a node group leads to updates within the EKS ManagedNodeGroup and the child NodeGroup, which can be disruptive and undesired in certain scenarios. For example, when scaling operations are managed by external tools or autoscaling policies, the Pulumi should not interfere with these dynamic changes.

Affected area/feature

eks.ManagedNodeGroup in AWS EKS

Expected Behavior

Introduce a configuration option, possibly a boolean flag, that allows the desiredSize of a node group to be ignored during updates. This would ensure that changes to this specific property do not trigger updates in the EKS ManagedNodeGroup, providing greater flexibility in managing node group sizes.

Impact

This feature would greatly enhance the usability of eks.ManagedNodeGroup for scenarios involving dynamic scaling, making it more adaptable to various operational requirements.

zbuchheit avatar Dec 06 '23 19:12 zbuchheit

Experiencing the same issue. I tried two other things:

  1. using transformations on eks.ManagedNodeGroup. however, the call is not executed for child resources (so aws:eks/nodeGroup:NodeGroup), just for the top level ones. I think this is hinting to another issue
  2. using pulumi.runtime.register_stack_transformation. this callback executes for aws:eks/nodeGroup:NodeGroup, but adding pulumi.ResourceOptions(ignore_changes=["scalingConfig.desiredSize"]) has no effect. I think actually no resources in this repository support ignore_changes as per this comment

jerguslejko avatar Jan 16 '24 18:01 jerguslejko