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

feat: adding support for karpenter blockdevicemapping #890

Conversation

paulmowat
Copy link
Contributor

Description of changes:

Adding in support to pass blockDeviceMappings through to karpenter as per https://karpenter.sh/v0.30/concepts/node-templates/#specblockdevicemappings

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

test/karpenter.test.ts Outdated Show resolved Hide resolved
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.

@paulmowat thank you for this contribution. Please see a couple relatively minor comments.

noDevice?: string;
}

interface Ebs {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ebs is a bit too bold for this interface as it appears to represent ElasticBlockStorage as a service. How about either "EbsVolumeSettings|EbsVolumeMappingsor justEbsMappings`?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for the feedback. I've renamed to EBSVolumeMapping


interface BlockDeviceMapping {
Copy link
Collaborator

Choose a reason for hiding this comment

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

These should be exported along with the KarpenterAddOnProps (not part of the PR atm) as customers will have issue consuming these otherwise. Let's add export keyword to all public data types.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for the feedback. I've exported all the interfaces (including KarpenterAddOnProps) and now use these as part of the unit test.

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
Copy link
Collaborator

Validated with unit tests, e2e will be used with the upgraded versions of helm/cdk in the 1.13 release prep.

@shapirov103 shapirov103 merged commit 425decc into aws-quickstart:main Dec 15, 2023
2 checks passed
@paulmowat paulmowat deleted the feat/karpenter_nodetemplate_blockdevicemapping branch December 15, 2023 15:30
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