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: re-reconcile the nodeclass status #7305

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Vacant2333
Copy link

Fixes #N/A

Description
if users omit the necessary tags and later add them, we need to reprocess the information

How was this change tested?

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.

@Vacant2333 Vacant2333 requested a review from a team as a code owner October 31, 2024 01:22
Copy link

netlify bot commented Oct 31, 2024

Deploy Preview for karpenter-docs-prod canceled.

Name Link
🔨 Latest commit e3a509a
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/67244a0c11361600085e387f

Copy link
Contributor

@jonathan-innis jonathan-innis left a comment

Choose a reason for hiding this comment

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

Thanks for the change! Looks good. Just a couple comments

pkg/controllers/nodeclass/status/ami.go Outdated Show resolved Hide resolved
return reconcile.Result{}, nil
// If users have omitted the necessary tags and later add them, we need to reprocess the information.
// Returning 'ok' in this case means that the nodeclass will remain in an unready state until the component is restarted.
return reconcile.Result{RequeueAfter: 15 * time.Second}, nil
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add a test for each of these reconcilers to ensure that we don't return an empty result and instead return a RequeueAfter value?

Copy link
Author

Choose a reason for hiding this comment

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

im not sure if we need the test, how do u think? if its required?

@coveralls
Copy link

Pull Request Test Coverage Report for Build 11604399987

Details

  • 6 of 12 (50.0%) changed or added relevant lines in 4 files are covered.
  • 2 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.04%) to 82.835%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/controllers/nodeclass/status/ami.go 0 3 0.0%
pkg/controllers/nodeclass/status/readiness.go 0 3 0.0%
Files with Coverage Reduction New Missed Lines %
pkg/controllers/nodeclass/status/readiness.go 1 58.33%
pkg/controllers/nodeclass/status/ami.go 1 75.0%
Totals Coverage Status
Change from base Build 11567721194: -0.04%
Covered Lines: 5646
Relevant Lines: 6816

💛 - Coveralls

pkg/controllers/nodeclass/status/readiness.go Outdated Show resolved Hide resolved
pkg/controllers/nodeclass/status/ami.go Outdated Show resolved Hide resolved
@Vacant2333 Vacant2333 force-pushed the fix-re-reconcile-the-nodeclass-status-2 branch from 4806bcb to 294042e Compare November 1, 2024 02:54
@Vacant2333 Vacant2333 force-pushed the fix-re-reconcile-the-nodeclass-status-2 branch from 294042e to e3a509a Compare November 1, 2024 03:24
@Vacant2333
Copy link
Author

@jmdeal @jonathan-innis hi, can u help me review again, i have resolve the comments, thank u!

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.

4 participants