Skip to content

Commit

Permalink
fix nodegroup minsize and desiredsize (#654)
Browse files Browse the repository at this point in the history
Co-authored-by: Charles Tison <ctison@pm.me>
  • Loading branch information
drunkirishcoder and ctison authored Feb 7, 2022
1 parent e358bf5 commit 34643e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions nodejs/eks/nodegroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 34643e9

Please sign in to comment.