<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">To all app developers out there, there was a recent change in the framework [1].<br>
<br>
</span></div>
<div><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">Currently if you disable a helm chart when you update an app it will be re-enabled by default
 on the newer version.<br>
<blockquote itemscope="" itemtype="https://schemas.microsoft.com/QuotedText" style="border-left: 3px solid rgb(200, 200, 200); border-top-color: rgb(200, 200, 200); border-right-color: rgb(200, 200, 200); border-bottom-color: rgb(200, 200, 200); padding-left: 1ex; margin-left: 0.8ex; color: rgb(102, 102, 102);">
<div class="ContentPasted1">[sysadmin@controller-0 ~(keystone_admin)]$ system helm-chart-attribute-modify
<div class="ContentPasted1">usage: system helm-chart-attribute-modify [--enabled <true/false>] <app name> <chart name> <namespace><br>
</div>
<div class="ContentPasted1"><br>
</div>
<div class="ContentPasted1"><span style="background-color:rgb(255, 255, 255);display:inline !important" class="ContentPasted2">system helm-chart-attribute-modify --enabled false MY_APP MY_CHART MY_NAMESPACE<br>
</span></div>
</div>
</blockquote>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-weight: 400;"><br>
</span></div>
<div class="elementToProof ContentPasted9">The chart attribute(enabled/disabled) itself is stored in sysinv database in a column called 'system_overrides' (bad naming, will be aligned later).enabled<br>
</div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-weight: 400;" class="elementToProof"><span style="background-color:rgb(255, 255, 255);display:inline !important" class="ContentPasted8"><br>
</span></span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-weight: 400;">If you want to keep the disabled status during app update you can</span> update
 the metadata.yaml ([2] example location for one app), adding at root level the following</div>
<blockquote itemscope="" itemtype="https://schemas.microsoft.com/QuotedText" style="border-left: 3px solid rgb(200, 200, 200); border-top-color: rgb(200, 200, 200); border-right-color: rgb(200, 200, 200); border-bottom-color: rgb(200, 200, 200); padding-left: 1ex; margin-left: 0.8ex; color: rgb(102, 102, 102);">
<div class="ContentPasted6">maintain_attributes: true</div>
</blockquote>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-weight: 400;"><br>
</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-weight: 400;">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).</span></div>
<div class="elementToProof"><br>
</div>
<blockquote itemscope="" itemtype="https://schemas.microsoft.com/QuotedText" style="border-left: 3px solid rgb(200, 200, 200); border-top-color: rgb(200, 200, 200); border-right-color: rgb(200, 200, 200); border-bottom-color: rgb(200, 200, 200); padding-left: 1ex; margin-left: 0.8ex; color: rgb(102, 102, 102);">
<div class="ContentPasted1">
<div class="ContentPasted1"><span style="background-color:rgb(255, 255, 255);display:inline !important" class="ContentPasted2 ContentPasted4">system application[sysadmin@controller-0 ~(keystone_admin)]$ system application-update
<div class="ContentPasted4">usage: system application-update [-n <app name>] [-v <app version>] [--reuse-user-overrides <true/false>] [--reuse-attributes <true/false>] <tar file></div>
</span></div>
<div class="ContentPasted1"><span style="background-color:rgb(255, 255, 255);display:inline !important" class="ContentPasted2 ContentPasted4 ContentPasted5"><br>
</span></div>
<div class="ContentPasted1"><span style="background-color:rgb(255, 255, 255);display:inline !important" class="ContentPasted2 ContentPasted4 ContentPasted5">system application[sysadmin@controller-0 ~(keystone_admin)]$ system application-update -n MY_APP -v
 MY_VERSION </span>--reuse-attributes true /path/to/tar.gz</div>
</div>
</blockquote>
<div class="elementToProof"><br>
</div>
</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof"><br>
</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0">[1]: <a href="https://review.opendev.org/c/starlingx/config/+/865327" id="LPlnk949724">https://review.opendev.org/c/starlingx/config/+/865327</a><br>
</span></div>
<div class="elementToProof ContentPasted7" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
[2]: <a href="https://opendev.org/starlingx/platform-armada-app/src/branch/master/stx-platform-helm/stx-platform-helm/files/metadata.yaml" id="LPlnkOWALinkPreview">https://opendev.org/starlingx/platform-armada-app/src/branch/master/stx-platform-helm/stx-platform-helm/files/metadata.yaml</a></div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1">
<div id="LPBorder_GTaHR0cHM6Ly9vcGVuZGV2Lm9yZy9zdGFybGluZ3gvcGxhdGZvcm0tYXJtYWRhLWFwcC9zcmMvYnJhbmNoL21hc3Rlci9zdHgtcGxhdGZvcm0taGVsbS9zdHgtcGxhdGZvcm0taGVsbS9maWxlcy9tZXRhZGF0YS55YW1s" class="LPBorder305234" style="width: 100%; margin-top: 16px; margin-bottom: 16px; position: relative; max-width: 800px; min-width: 424px;">
<table id="LPContainer305234" role="presentation" style="padding: 12px 36px 12px 12px; width: 100%; border-width: 1px; border-style: solid; border-color: rgb(200, 200, 200); border-radius: 2px;">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td>
<div id="LPImageContainer305234" style="position: relative; margin-right: 12px; height: 160px; overflow: hidden; width: 240px;">
<a target="_blank" id="LPImageAnchor305234" href="https://opendev.org/starlingx/platform-armada-app/src/branch/master/stx-platform-helm/stx-platform-helm/files/metadata.yaml"><img id="LPThumbnailImageId305234" alt="" height="160" style="display: block;" width="137" src="https://opendev.org/avatars/starlingx"></a></div>
</td>
<td style="width: 100%;">
<div id="LPTitle305234" style="font-size: 21px; font-weight: 300; margin-right: 8px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; margin-bottom: 12px;">
<a target="_blank" id="LPUrlAnchor305234" href="https://opendev.org/starlingx/platform-armada-app/src/branch/master/stx-platform-helm/stx-platform-helm/files/metadata.yaml" style="text-decoration: none; color: var(--themePrimary);">platform-armada-app</a></div>
<div id="LPDescription305234" style="font-size: 14px; max-height: 100px; color: rgb(102, 102, 102); font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; margin-bottom: 12px; margin-right: 8px; overflow: hidden;">
StarlingX Platform Armada App</div>
<div id="LPMetadata305234" style="font-size: 14px; font-weight: 400; color: rgb(166, 166, 166); font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif;">
opendev.org</div>
</td>
</tr>
</tbody>
</table>
<div id="LPCloseButtonContainer305234" class="uHkAz" tabindex="0" title="Remove link preview" role="button">
<i data-icon-name="Cancel" aria-hidden="true" id="LPCloseButton305234" class="Rm9Q1 root-213"></i></div>
<div id="LPCloseButtonContainer305234" class="uHkAz" tabindex="0" title="Remove link preview" role="button">
<i data-icon-name="Cancel" aria-hidden="true" id="LPCloseButton305234" class="Rm9Q1 root-213"></i></div>
</div>
</div>
<br>
<div class="elementToProof">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
<div class="PlainText">Thanks,<br>
Dan Voiculeasa</div>
</span></font></div>
</div>
</div>
</div>
</body>
</html>