armada/doc/source/operations
Sean Eagan 6b96bbf28d Correctly identify latest release
This fixes the following issues with listing releases from tiller,
which could cause Armada to be confused about the state of the
latest release, and do the wrong thing.

- Was not filtering out old releases, so we could find both a
  FAILED and DEPLOYED release for the same chart. When this is the
  case it likely means the FAILED release is the latest, since
  otherwise armada would have purged the release (and all its
  history) upon seeing the FAILED release in a previous run.
  The issue is that after the purge it would try to upgrade
  rather than re-install, since it also sees the old DEPLOYED
  release. Also if a release gets manually fixed (DEPLOYED)
  outside of armada, armada still sees the old FAILED release,
  and will purge the fixed release.
- Was only fetching DEPLOYED and FAILED releases from tiller, so if
  the latest release has another status Armada won't see it at all.

This changes to:

- Fetch releases with all statuses.
- Filter out old releases.
- Raise an error if latest release has status other than DEPLOYED
  or FAILED, since it's not clear what other action to take in
  this scenario.

Change-Id: I84712c1486c19d2bba302bf3420df916265ba70c
2018-10-19 09:14:15 -05:00
..
exceptions Correctly identify latest release 2018-10-19 09:14:15 -05:00
documents.rst Fix: various documentation and URL fixes 2018-09-24 12:53:27 +02:00
guide-build-armada-yaml.rst Add chart API to wait on k8s resource types/labels 2018-10-05 16:48:32 -05:00
guide-configure.rst Rename docs to doc to align with OpenStack standard 2018-05-17 21:39:01 +00:00
guide-helm-plugin.rst Remove references to old git repos 2018-05-29 10:15:13 -05:00
guide-troubleshooting.rst Fix: various documentation and URL fixes 2018-09-24 12:53:27 +02:00
guide-use-armada.rst Fix: various documentation and URL fixes 2018-09-24 12:53:27 +02:00
index.rst Remove api guide in favor of swagger Docs 2018-06-11 12:00:34 -05:00
sampleconf.rst Rename docs to doc to align with OpenStack standard 2018-05-17 21:39:01 +00:00
samplepolicy.rst Rename docs to doc to align with OpenStack standard 2018-05-17 21:39:01 +00:00