config/sysinv/sysinv/sysinv/etc
David Bastos ce4b7c1eb3 Fix misleading app status after failed override update
Application status was misleading after a failed override update with
illegal values. Application should be in failed (apply-failed) state,
and alarm should be raised accordingly. Instead, we're led to believe
that the update was completed successfully.

The solution consists of adding a default delay to the system of 60
seconds before changing the helmrelease status. This way we ensure
that reconciliation has already been called.

This also ensures that any application can override this default
value via metadata. Just create a variable with the same name with
the amount of time that is needed.

Test Plan:
PASS: Build-pkgs && build-image
PASS: Upload, apply, delete and update nginx-ingress-controller
PASS: Upload, apply, delete and update platform-integ-apps
PASS: Upload, apply, delete and update metrics-server
PASS: Update user overrides (system user-override-update) with illegal
      values. When reapplying the app it should fail.
PASS: Update user overrides (system user-override-update) with correct
      values. When reapplying the app it should complete successfully.
PASS: If the app has the fluxcd_hr_reconcile_check_delay key in its
      metadata, the system's default delay value must be overwritten.

Closes-Bug: 2053276

Change-Id: I5e75745009be235e2646a79764cb4ff619a93d59
Signed-off-by: David Bastos <david.barbosabastos@windriver.com>
2024-02-16 17:51:14 +00:00
..
sysinv Fix misleading app status after failed override update 2024-02-16 17:51:14 +00:00