Add two new steps to the orchestrated Kubernetes upgrade:
* 'pre-application-update': update StarlingX applications before the
new Kubernetes version is deployed.
* 'post-application-update': update Starlingx applications after the
new Kuberneter version is deployed.
This was implemented according to the changes introduced to sysinv by
the following commit:
https://review.opendev.org/c/starlingx/config/+/909172
Unit tests have also been updated to account for the new steps.
Test Plan:
PASS: build-pkgs -a && build-image
AIO-SX Test Cases:
PASS: Run an orchestrated Kubernetes upgrade with no apps to be updated.
PASS: Run a single-version orchestrated Kubernetes upgrade with apps to
be updated during the pre-application-update and
post-application-update steps.
PASS: Run a multi-version orchestrated Kubernetes upgrade with apps to
be updated during the pre-application-update and
post-application-update steps.
PASS: Run an orchestrated Kubernetes upgrade that fails during the
pre-application-update step due to a missing metadata.yaml file.
Confirm that the upgrade was successfully aborted.
PASS: Run an orchestrated Kubernetes upgrade that fails during the
post-application-update step due to a missing metadata.yaml file.
Confirm that the upgrade was successfully aborted.
AIO-DX Test Cases:
PASS: Run an orchestrated Kubernetes upgrade with no apps to be updated.
PASS: Run a single-version orchestrated Kubernetes upgrade with apps to
be updated during the pre-application-update and
post-application-update steps.
PASS: Run an orchestrated Kubernetes upgrade that fails during the
pre-application-update step due to a missing metadata.yaml file.
Fix the application tarball and resume the upgrade.
Confirm that the upgrade resumes from the same step.
Confirm that the upgrade finishes successfully.
PASS: Run an orchestrated Kubernetes upgrade that fails during the
post-application-update step due to a missing metadata.yaml file.
Fix the application tarball and resume the upgrade.
Confirm that the upgrade resumes from the same step.
Confirm that the upgrade finishes successfully.
Story: 2010929
Task: 49791
Depends-On: https://review.opendev.org/c/starlingx/config/+/909172
Change-Id: I5217db1cb744320979afcd161cb436bf089ccc9d
Signed-off-by: Igor Soares <Igor.PiresSoares@windriver.com>