Skip to content
New issue

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

fix(nodejs): Do not fallback on cluster name when creating node group #492

Merged
merged 2 commits into from
Jan 8, 2021
Merged

fix(nodejs): Do not fallback on cluster name when creating node group #492

merged 2 commits into from
Jan 8, 2021

Conversation

Embraser01
Copy link
Contributor

@Embraser01 Embraser01 commented Dec 18, 2020

Proposed changes

createManagedNodeGroup had a fallback on the cluster name for nodeGroupName which disabled the auto naming feature which led deleteBeforeReplace to be true.

The fix is probably a breaking change as it will update the NodeGroup after an update.

Related issues

Fixes #491

`createManagedNodeGroup` had a fallback on the cluster name for `nodeGroupName` which disabled the auto naming feature which led `deleteBeforeReplace` to be true.

Fixes #491
@github-actions
Copy link

PR is now waiting for a maintainer to run the acceptance tests. This PR will only perform build and linting.
Note for the maintainer: To run the acceptance tests, please comment /run-acceptance-tests on the PR

@github-actions
Copy link

PR is now waiting for a maintainer to run the acceptance tests. This PR will only perform build and linting.
Note for the maintainer: To run the acceptance tests, please comment /run-acceptance-tests on the PR

@@ -847,7 +847,6 @@ export function createManagedNodeGroup(name: string, args: ManagedNodeGroupOptio
const nodeGroup = new aws.eks.NodeGroup(name, {
...nodeGroupArgs,
clusterName: args.clusterName || core.cluster.name,
nodeGroupName: args.nodeGroupName || name,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I thought in your original issue you posted, you were proposing something different, which was to not provide nodeGroupName if there's no arg passed in, but to keep it if there was. At least this way, this is less breaking for folks who are explicitly passing in the arg.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The nodeGroupName will be taken if provided from the ...nodeGroupArgs spread. Passing the nodeGroupName argument will still work as before

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, of course, sorry, yes. Thinking about this more, I guess one way to help folks who do rely on defaulting to the cluster name would be to indicate that they can still do this via a transformation. Let me ask one other person to take a look to make sure I'm not off in any of my thinking here.

Copy link
Member

@lblackstone lblackstone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@leezen leezen merged commit b78a28d into pulumi:master Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

createManagedNodeGroup disable node group auto naming
3 participants