We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
desiredSize and minSize of 0 are not correctly handled when specifying the NodeGroupScalingConfigArgs for a ManagedNodeGroup.
desiredSize
minSize
NodeGroupScalingConfigArgs
ManagedNodeGroup
pulumi up
Expected:
desiredSize = 0 minSize = 0
Actual:
desiredSize = 2 minSize = 1
the offending code appears to be https://github.com/pulumi/pulumi-eks/blob/master/nodejs/eks/nodegroup.ts#L907-L908
const desiredSize = config && config.desiredSize || 2; const minSize = config && config.minSize || 1;
because 0 is falsy, the expression 0 || 2 evaluates to 2 not 0.
0 || 2
2
0
The text was updated successfully, but these errors were encountered:
Thanks for pointing out the bugs -- any chance you'd be willing to submit a PR for this?
Sorry, something went wrong.
submitted.
Closed via #654
stack72
No branches or pull requests
Hello!
Issue details
desiredSize
andminSize
of 0 are not correctly handled when specifying theNodeGroupScalingConfigArgs
for aManagedNodeGroup
.Steps to reproduce
desiredSize
orminSize
to 0.pulumi up
desiredSize
is 2 andminSize
is 1Expected:
desiredSize = 0
minSize = 0
Actual:
desiredSize = 2
minSize = 1
the offending code appears to be https://github.com/pulumi/pulumi-eks/blob/master/nodejs/eks/nodegroup.ts#L907-L908
because 0 is falsy, the expression
0 || 2
evaluates to2
not0
.The text was updated successfully, but these errors were encountered: