brainy-beach-36627
05/04/2022, 10:12 AMignore_changes=["scalingConfig.desiredSize"]
inside eks.ManagedNodeGroup() to let the autoscaler manage this value, but it doesn’t seems to work.
When I run pulumi preview --diff, the config si not ignored :
~ scalingConfig: {
~ desiredSize: 4 => 1
}
Does someone had a similar issue ?echoing-dinner-19531
05/04/2022, 10:36 AMbrainy-beach-36627
05/04/2022, 11:51 AMignore_changes=["scalingConfig"]
echoing-dinner-19531
05/04/2022, 1:29 PMworried-xylophone-86184
08/11/2022, 9:29 AMechoing-dinner-19531
08/11/2022, 9:36 AMworried-xylophone-86184
08/11/2022, 9:37 AMbrainy-beach-36627
08/11/2022, 9:50 AMworried-xylophone-86184
08/11/2022, 9:51 AMechoing-dinner-19531
08/11/2022, 9:52 AMworried-xylophone-86184
08/11/2022, 9:55 AMdef ignore_scaling_config(self, args: ResourceTransformationArgs):
print(args.props)
print(args.opts)
if args.type_ == "eks:index:ManagedNodeGroup":
return ResourceTransformationResult(
props=args.props,
opts=ResourceOptions.merge(args.opts, ResourceOptions(
ignore_changes=["scalingConfig"],
)))
eks_node_group = ManagedNodeGroup(
node_group["name"],
node_group_name=node_group["name"],
subnet_ids=nodegroup_azs,
cluster=self.eks_cluster.core,
capacity_type=capacity_type,
taints=taints,
labels=node_group.get("labels", None),
instance_types=node_group["instance_types"],
node_role_arn=self.eks_ec2_role.arn,
scaling_config=nodegroup_scaling_args,
launch_template=launch_template_args,
tags=tag_args,
opts=ResourceOptions(
transformations=[self.ignore_scaling_config]
),
)
I just closed my terminal but when I got the warning I figured internally it was trying to do the same thing as ResourceOptions.ignore_changes
echoing-dinner-19531
08/11/2022, 9:56 AMbrainy-beach-36627
08/11/2022, 9:57 AMechoing-dinner-19531
08/11/2022, 9:58 AM