RoadieHQ / kubewise

Get Helm notifications in your team chat
Apache License 2.0
59 stars 6 forks source link

Handle install, upgrade and rollback failure #10

Closed dtuite closed 4 years ago

dtuite commented 4 years ago

The Slack Bot should send a message when an install, upgrade, or other operation fails. It should clearly indicate that the operation has failed and it should attempt to provide debugging information.

There should be a repeatable mechanism provided for forcing an install or upgrade into a failure so that this feature can be tested.

The full list of Helm statuses is here.

dtuite commented 4 years ago

Here's a reliable way to cause a failure:

» helm upgrade kubewise -n kubewise larder/kubewise --set slack.token="<api-token>"
» helm install flux fluxcd/flux --set git.url=git@github.com:fluxcd/flux-get-started --namespace flux --set image.tag="xxx" --wait --timeout 10s
Error: timed out waiting for the condition
» helm history flux -n flux
REVISION    UPDATED                     STATUS  CHART       APP VERSION DESCRIPTION
1           Sat Mar 28 17:53:09 2020    failed  flux-1.2.0  1.18.0      Release "flux" failed: timed out waiting for the condition