You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the solution you'd like:
When requesting that a microvm is deleted via the API the spec for the VM should be marked as deleted but the content should remain.
The reconciliation loop should do the ultimate delete after the microvm has been removed.
Why do you want this feature:
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
The text was updated successfully, but these errors were encountered:
Mark the VM in the spec as deleted and let the reconciliation loop
handle it.
For mocking purpose, I introduced a port.HasTime interface. This
interface requires only one function: `SetClock(func() time.Time)`. By
defualt on app creation with `New()` it's `time.Now`, but while writing
tests, it's hard to make deep comparisons with dynamic data.
Potentially it could be solved with extra mocking layers all around `app`, but
this is a clean and easy solution and can be reused later if we have to
add more logic where we want to use the current timestamp.
fixesliquidmetal-dev#74
Mark the VM in the spec as deleted and let the reconciliation loop
handle it.
For mocking purpose, I introduced a Clock in ports.Collection.
Changed the event to Update event from Delete event. For the
reconciliation loop, they are the same. Let me know if we still want to
use the Delete event.
fixesliquidmetal-dev#74
Mark the VM in the spec as deleted and let the reconciliation loop
handle it.
For mocking purpose, I introduced a Clock in ports.Collection.
Changed the event to Update event from Delete event. For the
reconciliation loop, they are the same.
fixes#74
Describe the solution you'd like:
When requesting that a microvm is deleted via the API the spec for the VM should be marked as deleted but the content should remain.
The reconciliation loop should do the ultimate delete after the microvm has been removed.
Why do you want this feature:
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
The text was updated successfully, but these errors were encountered: