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

chore: update kubelet hash annotation on nodeclaim #6508

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

jigisha620
Copy link
Contributor

@jigisha620 jigisha620 commented Jul 13, 2024

Fixes #N/A

Description
Added change to update nodeClaim hash when kubelet configuration on ec2nodeclass changes. This change has been added to orchestrate the conversion from v1beta1 to v1 apis specifically for the case where we have moved kubelet configuration from nodePool to nodeClass. We don't want to drift the nodeClaim if kubelet config is moved from nodePool to nodeClass if it's unchanged.

How was this change tested?
Added functional tests for this change.

Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: #
  • No

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

@jigisha620 jigisha620 requested a review from a team as a code owner July 13, 2024 00:47
@jigisha620 jigisha620 requested a review from njtran July 13, 2024 00:47
Copy link

netlify bot commented Jul 13, 2024

Deploy Preview for karpenter-docs-prod canceled.

Name Link
🔨 Latest commit dc65629
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/6695cb26a9f52000087f3d5c

@coveralls
Copy link

coveralls commented Jul 13, 2024

Pull Request Test Coverage Report for Build 9949156096

Details

  • 39 of 60 (65.0%) changed or added relevant lines in 4 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.1%) to 79.981%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/cloudprovider/cloudprovider.go 7 11 63.64%
pkg/controllers/nodeclass/hash/controller.go 6 10 60.0%
pkg/utils/utils.go 13 18 72.22%
pkg/cloudprovider/drift.go 13 21 61.9%
Files with Coverage Reduction New Missed Lines %
pkg/providers/amifamily/ami.go 1 93.33%
Totals Coverage Status
Change from base Build 9946390519: 0.1%
Covered Lines: 5853
Relevant Lines: 7318

💛 - Coveralls

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.

Nice work!

pkg/apis/v1/labels.go Outdated Show resolved Hide resolved
pkg/apis/v1/labels.go Outdated Show resolved Hide resolved
pkg/cloudprovider/drift.go Outdated Show resolved Hide resolved
pkg/utils/utils.go Outdated Show resolved Hide resolved
pkg/controllers/nodeclass/hash/suite_test.go Outdated Show resolved Hide resolved
pkg/controllers/nodeclass/hash/suite_test.go Show resolved Hide resolved
pkg/controllers/nodeclass/hash/suite_test.go Outdated Show resolved Hide resolved
pkg/controllers/nodeclass/hash/controller.go Show resolved Hide resolved
@ellistarn
Copy link
Contributor

I'm struggling to review this without context. Can you add to the description why these changes are necessary?

pkg/apis/v1/labels.go Outdated Show resolved Hide resolved
pkg/cloudprovider/cloudprovider.go Show resolved Hide resolved
test/suites/integration/ec2nodeclass_kubelet_test.go Outdated Show resolved Hide resolved
@jigisha620 jigisha620 force-pushed the feat-kubelet-hash branch 2 times, most recently from 1b751f8 to 62badb2 Compare July 16, 2024 00:05
@jigisha620 jigisha620 enabled auto-merge (rebase) July 16, 2024 00:24
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.

Small nits

pkg/cloudprovider/drift.go Outdated Show resolved Hide resolved
pkg/apis/v1/labels.go Outdated Show resolved Hide resolved
pkg/utils/utils.go Outdated Show resolved Hide resolved
test/suites/integration/ec2nodeclass_kubelet_test.go Outdated Show resolved Hide resolved
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.

One optional comment

pkg/utils/utils.go Show resolved Hide resolved
@jigisha620 jigisha620 merged commit 7d254f8 into aws:main Jul 16, 2024
18 checks 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.

None yet

4 participants