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: Nodes are now owned by Provisioners, and will cascade on delete by default #1934

Merged
merged 2 commits into from Jun 16, 2022

Conversation

ellistarn
Copy link
Contributor

@ellistarn ellistarn commented Jun 14, 2022

Fixes: #1268 #1738

Description
Previously, when a provisioner was deleted, the nodes would be leaked and require manual cleanup. With this change, deletion of a provisioner will result in deletion of the nodes it launched. This aligns with the GitOps mental model.

Since this is a breaking change, this will trigger a minor version bump.

How was this change tested?

Does this change impact docs?

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

Release Note

BREAKING CHANGE: Nodes will now (gracefully) terminate in response to provisioner deletion.

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 June 14, 2022 22:10
@netlify
Copy link

netlify bot commented Jun 14, 2022

Deploy Preview for karpenter-docs-prod canceled.

Name Link
🔨 Latest commit 950ae3f
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/62aa4e432131d400091406c4

@ellistarn ellistarn force-pushed the owners branch 2 times, most recently from c11e277 to 0019cec Compare June 15, 2022 21:11
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! We should add a --cascade=orphan example to docs once the issue with it is figured out.

@@ -169,6 +169,7 @@ func (p *Provisioner) getPods(ctx context.Context) ([]*v1.Pod, error) {
return pods, nil
}

// nolint: gocyclo
Copy link
Contributor

Choose a reason for hiding this comment

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

😮

- apiGroups: [""]
resources: ["pods/binding", "pods/eviction"]
Copy link
Contributor

Choose a reason for hiding this comment

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

nice tidying!

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.

Proposal: introduce opt-in support for orphaned node destruction
2 participants