-
Notifications
You must be signed in to change notification settings - Fork 288
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
Unify delete mgmt #7502
Unify delete mgmt #7502
Conversation
cd88c76
to
b61126a
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #7502 +/- ##
==========================================
+ Coverage 73.48% 73.70% +0.21%
==========================================
Files 579 588 +9
Lines 36357 37099 +742
==========================================
+ Hits 26718 27344 +626
- Misses 7875 7962 +87
- Partials 1764 1793 +29 ☔ View full report in Codecov by Sentry. |
/retest |
1 similar comment
/retest |
87f7ab4
to
4c895e4
Compare
|
||
func (s *deleteManagementCluster) Run(ctx context.Context, commandContext *task.CommandContext) task.Task { | ||
logger.Info("Deleting management cluster") | ||
err := commandContext.ClusterManager.DeleteCluster(ctx, commandContext.BootstrapCluster, commandContext.WorkloadCluster, commandContext.Provider, commandContext.ClusterSpec) |
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.
We should use the EKSA controller here instead of using the cluster manager.
36ad2f5
to
fb9386d
Compare
@@ -39,3 +39,28 @@ func (s *moveClusterManagementTask) Restore(ctx context.Context, commandContext | |||
func (s *moveClusterManagementTask) Checkpoint() *task.CompletedTask { | |||
return nil | |||
} | |||
|
|||
type moveClusterManagementForDeleteTask struct{} |
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.
can we move this to a separate file for delete_move_capi.go?
@@ -14,8 +14,6 @@ type ( | |||
) | |||
|
|||
func (s *postDeleteWorkload) Run(ctx context.Context, commandContext *task.CommandContext) task.Task { |
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.
we can probably get rid of this task
1ccaed6
to
d76fc6a
Compare
d76fc6a
to
9971733
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tatlat 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 |
d25b7e2
to
e8a928b
Compare
/lgtm |
Issue #, if available:
Description of changes:
Adds a new delete workflow for mgmt clusters
Testing (if applicable):
Documentation added/planned (if applicable):
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.