Service Instance Pause #245
Labels
No labels
API
Billing
UI/UX
dependencies
bug
change
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
servala/servala-portal#245
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Stories
As a user, I want to pause a service instance
Implementation Notes
Pausing a service instance allows the user to stop it from running, instead of directly deleting it. This is a prerequisite for #235 and #236.
This first needs to be implemented on the control-plane, then we know in more detail how to do it in the portal. Internal ref: APPCAT-847.(Done)It is done by setting the field
spec.parameters.instancesto 0.We also should track this in the database so that we can show the pause state easily in the list view or in the dashboard.When the service is paused, change the button to "unpause".Questions:
spec.parameters.instancesso that we can set the same value again on unpause? Or just set it to 1 and let the user restore the original size? -> Just set it to 1 for now, we can change this later if required.FTR: Backend is ready!
We'll need answers to the open questions, at least the polling and restore questions (we can work out if it should be configurable later, imo).
Answers provided.
Do we handle paused instances differently with regards to instance limits? Currently we handle instance limits per instance object, ignoring
spec.parameters.instancesentirely. Should we change this? Or do paused instances simply continue counting towards the instance limit?Should we show the pause status on the instance list page as well? We don't currently retrieve k8s data on the instance list page, but we could lazy-load it after initial page load.
Right now we keep the situation as it is, we count the number of instances, independent of their state. This is something we might adjust later.
I'll create a follow-up issue to show more information on the list page.