armada/charts/tiller
Sean Eagan 9573afd3c2 Prevent tiller from leaving releases in pending status
In general, stuck pending statuses can be avoided by not enabling
the tiller native wait flag when updating releases, since tiller
then marks the release completed directly after applying the
resources to kubernetes.

However, when updating tiller itself, once kubernetes sees the
updated tiller resource, it can bring tiller down
before it has a chance to mark the release which contains tiller
as completed, leaving it in pending status.

This adds a preStop hook to both the standalone and sidecar tiller
containers to simply sleep to give them a chance to finish updating
their release, before terminating.

Ideally tiller would handle this on its own
via signal handling, but it doesn't. We could try to query for
the absence of PENDING_*** releases via `helm ls` before exiting,
however the helm CLI is not available inside the tiller image, and
those releases could be getting updated from another tiller instance,
or had already got stuck in that state previously, in which case we
don't want to hold up tiller termination.

Change-Id: I300c613f2a89eb1406531ce0a9af85c429a886f2
2019-06-17 09:18:37 -05:00
..
templates Prevent tiller from leaving releases in pending status 2019-06-17 09:18:37 -05:00
.helmignore feat(chart): adding-tiller 2017-12-11 18:43:11 +00:00
Chart.yaml CI: Add chart build gate 2019-01-28 11:35:58 -06:00
requirements.yaml Update Armada Tiller Chart 2018-01-27 03:40:02 +00:00
values.yaml Prevent tiller from leaving releases in pending status 2019-06-17 09:18:37 -05:00