Skip to content

Commit

Permalink
Allow hibernating installations to be deleted (#414)
Browse files Browse the repository at this point in the history
The installation hibernation states were reviewed and are safe be
deleted from. This removes the requirement to wake them back up
first.
  • Loading branch information
gabrieljackson authored Feb 15, 2021
1 parent 8916184 commit 6c20dd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/supervisor/installation.go
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ func (s *InstallationSupervisor) waitForHibernationStable(installation *model.In
return model.InstallationStateHibernationInProgress
}

logger.Info("Finished updating installation")
logger.Info("Finished hibernating installation")

return model.InstallationStateHibernating
}
Expand Down
3 changes: 3 additions & 0 deletions model/installation_states.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ func validTransitionToInstallationStateDeletionRequested(currentState string) bo
InstallationStateUpdateRequested,
InstallationStateUpdateInProgress,
InstallationStateUpdateFailed,
InstallationStateHibernationRequested,
InstallationStateHibernationInProgress,
InstallationStateHibernating,
InstallationStateDeletionRequested,
InstallationStateDeletionInProgress,
InstallationStateDeletionFinalCleanup,
Expand Down

0 comments on commit 6c20dd6

Please sign in to comment.