Skip to content

Commit

Permalink
🐛(playbook) fix delete_previous playbook behaviour on k8s api failure
Browse files Browse the repository at this point in the history
The delete_previous playbook fails with an unclear error message if
the kubernetes API is not responding.
  • Loading branch information
madmatah committed Jan 15, 2020
1 parent 7532936 commit a45c83b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Versioning](http://semver.org/spec/v2.0.0.html).
### Fixed

- Avoid downtime during a switch or rollback
- Improve `delete_previous` playbook behavior on k8s api failure

## [4.6.0] - 2020-01-13

Expand Down
2 changes: 1 addition & 1 deletion tasks/delete_app_objects_kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
- app={{ app.name }}
- deployment_stamp={{ targeted_deployment_stamp }}
register: remaining_objects
until: ( remaining_objects.resources | length ) == 0
until: remaining_objects.failed == True or ( remaining_objects.resources | length ) == 0
retries: 120
delay: 5

0 comments on commit a45c83b

Please sign in to comment.