diff --git a/CHANGELOG.md b/CHANGELOG.md index a17628d9e..4538b9241 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ ## Unreleased - Fix `ENABLE_PREFIX_DELEGATION` not working [#646](https://github.com/pulumi/pulumi-eks/pull/646) +- Fix node group's `minSize` and `desiredSize` cannot be 0 + [#645](https://github.com/pulumi/pulumi-eks/issues/645) ## 0.36.0 (Released December 3, 2021) - Add support for all EC2 LaunchConfiguration EBS parameters related to cluster root node volumes diff --git a/nodejs/eks/nodegroup.ts b/nodejs/eks/nodegroup.ts index eeb2cea98..420946675 100644 --- a/nodejs/eks/nodegroup.ts +++ b/nodejs/eks/nodegroup.ts @@ -904,9 +904,9 @@ export function createManagedNodeGroup(name: string, args: ManagedNodeGroupOptio scalingConfig: pulumi.all([ args.scalingConfig, ]).apply(([config]) => { - const desiredSize = config && config.desiredSize || 2; - const minSize = config && config.minSize || 1; - const maxSize = config && config.maxSize || 2; + const desiredSize = config?.desiredSize ?? 2; + const minSize = config?.minSize ?? 1; + const maxSize = config?.maxSize ?? 2; return { desiredSize: desiredSize, minSize: minSize,