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: allow node annotations to be set by the provisioner #87

Merged
merged 1 commit into from
Nov 25, 2022

Conversation

ellistarn
Copy link
Contributor

@ellistarn ellistarn commented Nov 25, 2022

Fixes #

Description

This feature lets you set karpenter.sh/do-not-consolidate on any node launched by the provisioner. We could implement similar mechanisms for karpenter.sh/do-not-upgrade karpenter.sh/do-not-rebalance etc. Essentially, instead of strongly typing all future concepts onto the provisioner, we maintain a flexible set of annotations (similar to scheduling requirement labels) at the node level that can be applied by Provisioners. It's also flexible and neutral to vendor specific annotations.

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.

@ellistarn ellistarn requested a review from a team as a code owner November 25, 2022 20:24
@ellistarn ellistarn force-pushed the annotations branch 3 times, most recently from 7153e8d to b21701b Compare November 25, 2022 20:39
@coveralls
Copy link

coveralls commented Nov 25, 2022

Pull Request Test Coverage Report for Build 3550610940

  • 11 of 11 (100.0%) changed or added relevant lines in 3 files are covered.
  • 7 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.003%) to 75.648%

Files with Coverage Reduction New Missed Lines %
pkg/controllers/provisioning/scheduling/preferences.go 7 86.67%
Totals Coverage Status
Change from base Build 3542971441: 0.003%
Covered Lines: 5315
Relevant Lines: 7026

💛 - Coveralls

Copy link

@grosser grosser left a comment

Choose a reason for hiding this comment

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

that seems awesome

Copy link
Member

@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.

LGTM 🚀

@ellistarn ellistarn merged commit 604edd1 into kubernetes-sigs:main Nov 25, 2022
@ellistarn ellistarn deleted the annotations branch November 25, 2022 21:38
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