-
Notifications
You must be signed in to change notification settings - Fork 497
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix destroy-model/destroy-controller to handle --force better.
--force and --timeout/--model-timeout now properly control the destruction of models so that --force with --timeout properly progresses despite the status of the model/environment. --force without --timeout now only propagates force to the cleanup of model entities, rather than the model removal itself. Since model destruction cannot be stopped once it has started, --timeout no longer makes sense to be passed for non-forceful model destruction. Graceful model destroys now wait indefinitely for the entities to cleanup and the cloud resources to cleanup before removing the model from state. Due to this change it is now required to be able to change the model destruction parameters while a model destroy is being processed by the undertaker. The undertaker will now restart itself when ForceDestroy or Timeout changes.
- Loading branch information
Showing
27 changed files
with
1,024 additions
and
364 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
apiserver/facades/client/modelupgrader/mocks/state_mock.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.