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: Add compat annotation key when using NodePool's kubelet config compat annotation #1667

Conversation

jonathan-innis
Copy link
Member

@jonathan-innis jonathan-innis commented Sep 16, 2024

Fixes aws/karpenter-provider-aws#6987

Description

Ensure that we add the compatability.karpenter.sh/v1beta1-kubelet-conversion is propagated onto NodeClaims when NodePool's use the kubelet configuration conversion during scheduling.

Prior to this change, it was possible for the scheduler to call the GetInstanceTypes() API with one kubelet configuration (parsed by the the compatability.karpenter.sh/v1beta1-kubelet-conversion annotation) which results in higher capacity/allocatable values to be passed to the scheduler. The NodeClaim wouldn't contain this annotation, though; so, when a CloudProvider goes to launch the NodeClaim or when the NodeClaim is considered later for capacity/allocatable, it might use a completely different set of values.

This change ensures that the compatability.karpenter.sh/v1beta1-kubelet-conversion so that the CloudProvider is able to reason about this Kubelet Config consistently across NodePools and NodeClaims.

How was this change tested?

make presubmit

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 16, 2024
@k8s-ci-robot k8s-ci-robot requested a review from jmdeal September 16, 2024 04:55
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jonathan-innis

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 16, 2024
@jonathan-innis jonathan-innis force-pushed the add-compat-annotation-key branch 3 times, most recently from 86d11f0 to 5058055 Compare September 16, 2024 05:20
@jonathan-innis jonathan-innis force-pushed the add-compat-annotation-key branch from 5058055 to 8fb0954 Compare September 18, 2024 00:48
@jonathan-innis jonathan-innis force-pushed the add-compat-annotation-key branch from 8fb0954 to b9f1b1e Compare September 18, 2024 01:12
Copy link
Contributor

@engedaam engedaam left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 18, 2024
@k8s-ci-robot k8s-ci-robot merged commit 8761b2d into kubernetes-sigs:release-v1.0.x Sep 18, 2024
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants