-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploy Item Timeout Detection (#174)
* extend api and configuration for progressing timeout detection * detect progressing and abort timeouts * extend mock deployer A new field in the mock configuration was added: initialPhase It sets the phase of the deploy item status, but only if the phase is either 'Init' or empty. Furthermore, it suppresses the deploy item being set to 'Succeeded' after a successful reconcile. The reasoning behind this is that for testing the deploy item timeout, the deploy item needs to be in a non-final phase, e.g. 'Progressing' for some time. However, if the mock deploy item's 'phase' field is used, the mock deployer will immediately overwrite any 'Failed' state set by the landscaper again, which makes it hard to observe the timeout behaviour. * add integration tests for deploy item progressing and aborting timeout detection * rename webhook test * refactor timeout configuration * update documentation * use wrapper for time.Duration instead of parsing from string for timeout durations * remove HasTimestampAnnotation and SetTimestampAnnotation methods * minor refactoring (review feedback) * fix bug in duration marshal * add unit tests for deploy item controller * refactor timeout integration test * implement review feedback * rename 'LastChangeReconcileTime' to 'LastReconcileTime'
- Loading branch information
1 parent
0ea9489
commit dbdea10
Showing
65 changed files
with
1,818 additions
and
287 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.