pulumi-eks
pulumi-eks copied to clipboard
Ability to Ignore Changes on `desiredSize` in eks.ManagedNodeGroup
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.
Experiencing the same issue. I tried two other things:
- using
transformations
oneks.ManagedNodeGroup
. however, the call is not executed for child resources (soaws:eks/nodeGroup:NodeGroup
), just for the top level ones. I think this is hinting to another issue - using
pulumi.runtime.register_stack_transformation
. this callback executes foraws:eks/nodeGroup:NodeGroup
, but addingpulumi.ResourceOptions(ignore_changes=["scalingConfig.desiredSize"])
has no effect. I think actually no resources in this repository supportignore_changes
as per this comment