[Starlingx-discuss] StarlingX App Framework update
To all app developers out there, there was a recent change in the framework [1]. Currently if you disable a helm chart when you update an app it will be re-enabled by default on the newer version. [sysadmin@controller-0 ~(keystone_admin)]$ system helm-chart-attribute-modify usage: system helm-chart-attribute-modify [--enabled <true/false>] <app name> <chart name> <namespace> system helm-chart-attribute-modify --enabled false MY_APP MY_CHART MY_NAMESPACE The chart attribute(enabled/disabled) itself is stored in sysinv database in a column called 'system_overrides' (bad naming, will be aligned later).enabled If you want to keep the disabled status during app update you can update the metadata.yaml ([2] example location for one app), adding at root level the following maintain_attributes: true There is more. You can override the behavior present by adding a special flag during 'system application-update'. You can force the information either way: reuse(will keep disabled the charts that were disabled) or not reuse(reset all the charts to be enabled). system application[sysadmin@controller-0 ~(keystone_admin)]$ system application-update usage: system application-update [-n <app name>] [-v <app version>] [--reuse-user-overrides <true/false>] [--reuse-attributes <true/false>] <tar file> system application[sysadmin@controller-0 ~(keystone_admin)]$ system application-update -n MY_APP -v MY_VERSION --reuse-attributes true /path/to/tar.gz [1]: https://review.opendev.org/c/starlingx/config/+/865327 [2]: https://opendev.org/starlingx/platform-armada-app/src/branch/master/stx-plat... [https://opendev.org/avatars/starlingx]<https://opendev.org/starlingx/platform-armada-app/src/branch/master/stx-platform-helm/stx-platform-helm/files/metadata.yaml> platform-armada-app<https://opendev.org/starlingx/platform-armada-app/src/branch/master/stx-platform-helm/stx-platform-helm/files/metadata.yaml> StarlingX Platform Armada App opendev.org Thanks, Dan Voiculeasa
participants (1)
-
Voiculeasa, Dan