-
Notifications
You must be signed in to change notification settings - Fork 21
Instance auto restart #2644
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
Instance auto restart #2644
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
hawkw
left a comment
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 looks lovely! I'm not particularly qualified to review the implementation of the frontend code, but I left a couple very minor suggestions on the text we display in the UI. Thanks for all your work on getting this exposed in the console, it looks great!
Co-authored-by: Eliza Weisman <eliza@elizas.website>
99997ee to
e2a231d
Compare
| // not all updates are restricted by state | ||
|
|
||
| // resize means changes to ncpus and memory | ||
| // https://github.com/oxidecomputer/omicron/blob/0c6ab099e/nexus/db-queries/src/db/datastore/instance.rs#L1282-L1288 | ||
| // https://github.com/oxidecomputer/omicron/blob/0c6ab099e/nexus/db-model/src/instance_state.rs#L39-L42 | ||
| resize: ['stopped', 'failed', 'creating'], | ||
|
|
||
| // https://github.com/oxidecomputer/omicron/blob/0c6ab099e/nexus/db-queries/src/db/datastore/instance.rs#L1209-L1215 | ||
| updateBootDisk: ['stopped', 'failed', 'creating'], | ||
|
|
||
| // there are no state restrictions on setting the auto restart policy, so we | ||
| // don't have a helper for it | ||
| // https://github.com/oxidecomputer/omicron/blob/0c6ab099e/nexus/db-queries/src/db/datastore/instance.rs#L1050-L1058 |
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.
👍
04bfec5 to
d707200
Compare
425524b to
7cde120
Compare
Fixes #2469
Fixes #2376
autoRestartEnabledto match actual API behaviourI'm sure someone will talk me down from the slow spinning icon when auto restart is enabled.