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

Change to use eks.nodeGroupOptions in the builder #895

Merged
merged 3 commits into from
Feb 28, 2024

Conversation

ROunofF
Copy link
Contributor

@ROunofF ROunofF commented Dec 21, 2023

Issue #, if available:

Description of changes: Change to use eks.nodeGroupOptions so we can have all options override in case it's needed.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ROunofF ROunofF changed the title Add windows karpenter Change to use eks.nodeGroupOptions in the builder Dec 21, 2023
Copy link
Collaborator

@elamaran11 elamaran11 left a comment

Choose a reason for hiding this comment

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

@ROunofF Minor feedback. Overall looks good.

maxSize: options.maxNodeSize,
nodeRole: options.nodeRole,
nodeGroupSubnets: { subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS },
diskSize: options.blockDeviceSize,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this property removed?

function buildGenericNodeGroup(options: WindowsOptions, overrideOptions?: eks.NodegroupOptions): clusterproviders.ManagedNodeGroup {

let currentOptions = options.genericNodeGroupOptions;
if ( overrideOptions ) { currentOptions = merge(options.genericNodeGroupOptions, overrideOptions) }

return {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please fix the GH action issue

Copy link
Collaborator

@elamaran11 elamaran11 left a comment

Choose a reason for hiding this comment

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

One more comment.

function buildGenericNodeGroup(options: WindowsOptions, overrideOptions?: eks.NodegroupOptions): clusterproviders.ManagedNodeGroup {

let currentOptions = options.genericNodeGroupOptions;
if ( overrideOptions ) { currentOptions = merge(options.genericNodeGroupOptions, overrideOptions) }
Copy link
Collaborator

Choose a reason for hiding this comment

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

Missing semicolon

Copy link
Collaborator

@shapirov103 shapirov103 left a comment

Choose a reason for hiding this comment

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

@ROunofF please address the minor feedback (inline) I will test and merge.

Copy link
Collaborator

@shapirov103 shapirov103 left a comment

Choose a reason for hiding this comment

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

LGTM

@shapirov103 shapirov103 merged commit e3407d7 into aws-quickstart:main Feb 28, 2024
1 check passed
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.

3 participants