Skip to content

Upgrade cluster applications, starting with runner

Thong Kuah requested to merge use_upgrade_install_for_helm_apps into master

What does this MR do?

  1. Adds ability to upgrade cluster applications

Re-uses the same services used to install a cluster application to also upgrade a cluster application. This is possible as helm allows installation and upgrade to both use helm upgrade --install.

This allows for the following new transitions:

  • a successful upgrade: installed -> scheduled -> updating -> installed updated
  • a failed upgrade: installed -> scheduled -> updating -> update_errored.

cf. successful installation is installable -> scheduled -> installing -> installed.

  1. Allow in the Frontend to upgrade the runner application

Other changes:

  • Changes InstallCommand to use helm upgrade --install.
  • Adds Clusters::Application::UpgradeService where the state transition needed to be scheduled -> updating.

What are the relevant issue numbers?

Tasks

Manual QA test

Does this MR meet the acceptance criteria?

Edited by 🤖 GitLab Bot 🤖

Merge request reports