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(nodeadm): enable CDI for 1.32+ #2173

Merged
merged 1 commit into from
Mar 6, 2025
Merged

feat(nodeadm): enable CDI for 1.32+ #2173

merged 1 commit into from
Mar 6, 2025

Conversation

cartermckinnon
Copy link
Member

@cartermckinnon cartermckinnon commented Mar 5, 2025

Description of changes:

Continues #2100.

This sets enable_cdi = true in the containerd configuration for Kubernetes version 1.32 and later. This is in preparation (anticipation?) for Dyanmic Resource Allocation (DRA) becoming enabled by default in 1.33.

I have not set this option in AL2, because 1.33 will not be supported on AL2.

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

Comment on lines +152 to +158
log.Info("Fetching kubelet version..")
kubeletVersion, err := kubelet.GetKubeletVersion()
if err != nil {
return err
}
cfg.Status.KubeletVersion = kubeletVersion
log.Info("Fetched kubelet version", zap.String("version", kubeletVersion))
Copy link
Member Author

Choose a reason for hiding this comment

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

We were calling kubelet.GetKubeletVersion() in several places, and they all had access to the NodeConfig, so I just cached it in the NodeConfigStatus.

@cartermckinnon
Copy link
Member Author

/ci

Copy link
Contributor

github-actions bot commented Mar 6, 2025

@cartermckinnon roger that! I've dispatched a workflow. 👍

Copy link
Contributor

github-actions bot commented Mar 6, 2025

@cartermckinnon the workflow that you requested has completed. 🎉

AMI variantBuildTest
1.25 / al2023success ✅success ✅
1.26 / al2023success ✅success ✅
1.27 / al2023success ✅success ✅
1.28 / al2023success ✅success ✅
1.29 / al2023success ✅success ✅
1.30 / al2023success ✅success ✅
1.31 / al2023success ✅success ✅
1.32 / al2023success ✅success ✅

@cartermckinnon cartermckinnon merged commit 2e8fa25 into main Mar 6, 2025
11 checks passed
@cartermckinnon cartermckinnon deleted the enable-cdi-132 branch March 6, 2025 20:02
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.

2 participants