Cleanup NICs when migrate from openstack MCM - #89
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
d542196 to
cf02b5c
Compare
|
Our project currently lacks enough active contributors to adequately respond to all PRs.
You can:
/lifecycle stale |
|
Our project currently lacks enough active contributors to adequately respond to all PRs.
You can:
/lifecycle rotten |
|
Our project currently lacks enough active contributors to adequately respond to all PRs.
You can:
/close |
|
@stackit-ske: Closed this PR. DetailsIn 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 kubernetes-sigs/prow repository. |
|
/reopen |
|
@dergeberl: Reopened this PR. DetailsIn 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 kubernetes-sigs/prow repository. |
|
/remove-lifecycle rotten |
|
Our project currently lacks enough active contributors to adequately respond to all PRs.
You can:
/lifecycle stale |
|
/remove-lifecycle stale |
cf02b5c to
d47b553
Compare
55364f4 to
1e553c4
Compare
5b85955 to
17def4f
Compare
|
@aniruddha2000 Please add A LOT of documentation explaining this PR and the individual functions |
| } | ||
| return false, nil | ||
|
|
||
| return deleted, nil |
There was a problem hiding this comment.
simply set deleted to true when allErrors is nil
There was a problem hiding this comment.
i have removed the deleted var, its less complex to just retun the true & false :)
How to categorize this PR?
/kind enhancement
/hold
wip
What this PR does / why we need it:
This PR involves migration of machines from OpenStack to STACKIT provider. There are mainly two controller involved in the change:
Creation
The newly created machine is created with STACKIT provider ID (stackit://project-id/server-id), and for the migrated machines with
stackit.cloud/migrated-machine: trueannotaion the creation will not work, to be sure not to mess with half created machines.Delete
While deleting machine it needs to list and delete all ports if a machine with the
stackit.cloud/migrated-machineannotation gets deleted.NOTE: There is a fallback to get the server by name in case there is no providerID during deletion. Normally this is done with a label containing the machine name and a label selector. In case of a migrated machine with the
stackit.cloud/migrated-machineannotation the deletion needs to get all servers and filters internally.Special notes for your reviewer:
Breaking changes: