Keep user overrides during app update

It was observed when updating the app part of platform upgrade that
it loses user overrides. I suspect a day 0 slip. All the other apps
already have a flag enabled to keep the user overrides during
app updates.

Enable 'maintain_user_overrides' flag, if present on N+1 version then it
will keep the N version user overrides.

If there are any kind of user overrides that need transformation
between N->N+1 update, these must be handled in the upgrade scripts,
helm charts or in the lifecycle hooks(maybe create new lifecycle
hook for this purpose).

Tests:
PASS: tested stx.5.0 to stx.6.0 upgrade, with patched
      platform-integ-apps, user overrides are kept

Closes-Bug: 2002301
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: I8d9563519129372e35d328942813256f1a3c1e38
This commit is contained in:
Dan Voiculeasa 2023-01-09 12:49:07 +02:00 committed by Dan Voiculeasa
parent 1e58027156
commit e29fbbadbd

View File

@ -1,6 +1,7 @@
app_name: @APP_NAME@
app_version: @APP_VERSION@
helm_repo: @HELM_REPO@
maintain_user_overrides: true
behavior:
platform_managed_app: yes
desired_state: applied