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

Add new condition to NodePool that tells whether any nodeclaims are drifted from the desired state #7293

Closed
reegnz opened this issue Oct 28, 2024 · 3 comments
Labels
feature New feature or request needs-triage Issues that need to be triaged

Comments

@reegnz
Copy link

reegnz commented Oct 28, 2024

Description

What problem are you trying to solve?

I'm trying to integrate karpenter nodepools into argocd health checks.
This would help argocd determine when a deployment of an ec2nodeclass or nodepool configuration change has been reconciled.

I think I could resolve this by writing a custom controller that adds an extra condition called Drifted to each NodePool resource, but I'd much rather have this solved natively by karpenter.

Proposal:

  • Introduce a new condition called Drifted with a value of False if the hashes of the NodeClaims managed by the NodePool do not match the hash of the NodePool and/or the Ec2NodeClass. The value should be True if any of the NodeClaims has a drifted hash of the NodePool or Ec2NodeClass.

How important is this feature to you?

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@reegnz reegnz added feature New feature or request needs-triage Issues that need to be triaged labels Oct 28, 2024
@njtran
Copy link
Contributor

njtran commented Oct 28, 2024

What seems even more valuable here is a status that says the number/percent of nodes that are drifted for a nodepool, right? Then you can easily check if == 0, then no drift.

@njtran
Copy link
Contributor

njtran commented Oct 28, 2024

Can you close and re-open this in github.com/kubernetes-sigs/karpenter?

@reegnz
Copy link
Author

reegnz commented Oct 29, 2024

Sure, let me reopen it under the other repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request needs-triage Issues that need to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants