-
Notifications
You must be signed in to change notification settings - Fork 342
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
PODAUTO-318: Implement HCP karpenter deletion #5540
base: main
Are you sure you want to change the base?
Conversation
@maxcao13: This pull request references PODAUTO-318 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
/cc joelsmith elmiko mtulio |
ffdf925
to
73cee45
Compare
karpenter-operator/controllers/karpenter/karpenter_controller.go
Outdated
Show resolved
Hide resolved
karpenter-operator/controllers/karpenter/karpenter_controller_test.go
Outdated
Show resolved
Hide resolved
should we get this #5522 merged first? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is looking nice, thanks @maxcao13 !
i have a question, but it's not a blocker.
karpenter-operator/controllers/karpenter/karpenter_controller.go
Outdated
Show resolved
Hide resolved
Probably makes sense for this to wait for that to be merged (whether we import the upstream or mirrored deps) since it's easier for me to resolve the TODOs this way. |
3d6d17d
to
883c4e4
Compare
ok let's ship #5522 then rebase and proceed here |
3931371
to
af5f15c
Compare
the e2e are failing because the operator can not exercise deletion because the karpenter types are not in the client scheme |
you can register it in |
af5f15c
to
35c87d7
Compare
/retest |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: enxebre, maxcao13 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
karpenter-operator/controllers/karpenter/karpenter_controller.go
Outdated
Show resolved
Hide resolved
karpenter-operator/controllers/karpenter/karpenter_controller.go
Outdated
Show resolved
Hide resolved
This commit implements supporting foreground cascading deletion of karpenter provisioned nodes upon deletion of a hosted control plane. The karpenter operator waits until all nodepools and nodeclaims are deleted in the guest cluster before removing its karpenter finalizer. Also modifies the current Karpenter e2e test to test deletion of an HCP is not blocked by karpenter nodes, and adds a unit test. Signed-off-by: Max Cao <[email protected]>
35c87d7
to
2625593
Compare
/retest |
/lgtm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @maxcao13 , lgtm
@maxcao13: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
What this PR does / why we need it:
This commit implements supporting cascading deletion of karpenter provisioned nodes upon deletion of a hosted control plane. Also modifies the current Karpenter e2e test to test deletion of an HCP is not blocked by karpenter nodes, and adds a unit test.
Which issue(s) this PR fixes (optional, use
fixes #<issue_number>(, fixes #<issue_number>, ...)
format, where issue_number might be a GitHub issue, or a Jira story:Fixes https://issues.redhat.com/browse/PODAUTO-318
Checklist