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: Stage core changes for linking machines (migration) #211

Merged

Conversation

jonathan-innis
Copy link
Member

@jonathan-innis jonathan-innis commented Feb 14, 2023

Fixes #

Description

Stages out karpenter-core changes for linking machines to a backing cloudprovider instance by using a karpenter.sh/linked annotation on the Machine to tell the machine controller to link the machine instead of launching a new one

How was this change tested?

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

@jonathan-innis jonathan-innis requested a review from a team as a code owner February 14, 2023 17:31
@jonathan-innis jonathan-innis force-pushed the machine-link-controller branch 2 times, most recently from 4591c83 to bd53698 Compare February 14, 2023 17:47
@coveralls
Copy link

coveralls commented Feb 14, 2023

Pull Request Test Coverage Report for Build 4176835870

  • 49 of 66 (74.24%) changed or added relevant lines in 8 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.02%) to 78.41%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/controllers/machine/controller.go 4 6 66.67%
pkg/operator/controller/singleton.go 0 2 0.0%
pkg/cloudprovider/metrics/cloudprovider.go 0 6 0.0%
pkg/controllers/machine/launch.go 25 32 78.13%
Totals Coverage Status
Change from base Build 4148479456: -0.02%
Covered Lines: 6312
Relevant Lines: 8050

💛 - Coveralls

@jonathan-innis jonathan-innis force-pushed the machine-link-controller branch 4 times, most recently from 25ec991 to 2013019 Compare February 14, 2023 18:01
bwagner5
bwagner5 previously approved these changes Feb 14, 2023
Copy link
Contributor

@bwagner5 bwagner5 left a comment

Choose a reason for hiding this comment

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

LGTM, 1 minor, optional nit

pkg/controllers/machine/launch.go Outdated Show resolved Hide resolved
Copy link
Contributor

@bwagner5 bwagner5 left a comment

Choose a reason for hiding this comment

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

LGTM

@jonathan-innis jonathan-innis enabled auto-merge (squash) February 14, 2023 18:27
@jonathan-innis jonathan-innis merged commit 1951766 into kubernetes-sigs:main Feb 14, 2023
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.

3 participants