mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-15 14:11:46 +00:00
fix: isStopping state condition (#431)
* fix: isStopping state condition Signed-off-by: Andy Lee <andy.lee@suse.com> * refactor: remove unused variable Signed-off-by: Andy Lee <andy.lee@suse.com> --------- Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
parent
e5ffb08df3
commit
b72f523ddf
@ -32,8 +32,6 @@ const PAUSED_VM_MODAL_MESSAGE =
|
|||||||
|
|
||||||
const POD_STATUS_NOT_SCHEDULABLE = 'POD_NOT_SCHEDULABLE';
|
const POD_STATUS_NOT_SCHEDULABLE = 'POD_NOT_SCHEDULABLE';
|
||||||
const POD_STATUS_CONTAINER_FAILING = 'POD_CONTAINER_FAILING';
|
const POD_STATUS_CONTAINER_FAILING = 'POD_CONTAINER_FAILING';
|
||||||
// eslint-disable-next-line no-unused-vars
|
|
||||||
const POD_STATUS_NOT_READY = 'POD_NOT_READY';
|
|
||||||
|
|
||||||
const POD_STATUS_FAILED = 'POD_FAILED';
|
const POD_STATUS_FAILED = 'POD_FAILED';
|
||||||
const POD_STATUS_CRASHLOOP_BACKOFF = 'POD_CRASHLOOP_BACKOFF';
|
const POD_STATUS_CRASHLOOP_BACKOFF = 'POD_CRASHLOOP_BACKOFF';
|
||||||
@ -742,6 +740,7 @@ export default class VirtVm extends HarvesterResource {
|
|||||||
if (this &&
|
if (this &&
|
||||||
!this.isVMExpectedRunning &&
|
!this.isVMExpectedRunning &&
|
||||||
this.isVMCreated &&
|
this.isVMCreated &&
|
||||||
|
this.vmi?.status?.phase !== undefined &&
|
||||||
this.vmi?.status?.phase !== VMIPhase.Succeeded &&
|
this.vmi?.status?.phase !== VMIPhase.Succeeded &&
|
||||||
this.vmi?.status?.phase !== VMIPhase.Pending
|
this.vmi?.status?.phase !== VMIPhase.Pending
|
||||||
) {
|
) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user