app-node-feature-discovery/helm-charts/upstream/node-feature-discovery-helm/debian/deb_folder/source
David Bastos 837aa1b1fc Add platform label to NFD application pods or namespace
Add support to 'app.starlingx.io/component' to be overwritten
by user override, with possible values being 'platform' and
'application'. With 'platform' being the default value. This
change will also restart the pods if the label in namespace
change.

Also, the opportunity was taken to restructure the helm
folders following a new standard:

 - Provide a top level hierarchy for helm charts to differentiate
   between upstream and custom charts: helm-charts/{custom,upstream}
 - stx-APP-helm now contains only manifests and final application
   packaging rules. No custom helm charts should be delivered here.
 - Use StarlingX debian git revcount packaging mechanisms to derive the
   semver BUILD version for upstream helm charts which maintains the
   upstream chart version and adds a versioned BUILD extension.

     <version core> ::= <major> "." <minor> "." <patch>
     <valid semver> ::= <version core> "+" <build>

   Chart version (MAJOR.MINOR.PATCH+STX.REV) is passed to 'helm package'
   command to force the version, where REV == 'git revcount'
 - Update 'stx-node-feature-discovery' to:
   - Update the build dependencies to include the new helm chart package
     and remove dependency on helm
   - Update the rules to remove building the node-feature-discovery
     chart and automatically update the chart versions in the fluxCD
     helmrelease.yaml files.

Additional changes and cleanup:
 - Remove 'helm dep' commands from chart Makefile as no chart
   dependencies are present
 - Fix formatting in 'node-feature-discovery-helm' and
   'stx-node-feature-discovery' changelogs to avoid dpkg-genchanges
   errors.

Test Plan:
PASS: build-pkgs -c -p node-feature-discovery-helm
PASS: build-pkgs -c -p stx-node-feature-discovery-helm
PASS: upload/apply/remove/delete/update node-feature-discovery.
PASS: Install node-feature-discovery and check if pods have the
      label 'app.starlingx.io/component' with the value 'platform'.
PASS: Change the value of the isApplicationLabel to true using
      "system helm-override-update" and check, if after re-applying
      the app, the label 'app.starlingx.component' changes to
      application' in the pods.
PASS: If "isApplicationLabel" is updated with a value other than
      true or false, the label on the pods "app.starlingx.io/component"
      will not change.
PASS: Build all packages generating an application tarball verifying
      all versions on the charts and application make sense.
PASS: Introduce temporary chart changes and ensure that the versions
      increment as expected.

Story: 2010612
Task: 49460

Signed-off-by: David Bastos <david.barbosabastos@windriver.com>

Change-Id: I8739f2bab77b3a6d273217792321cea32473a8cd
2024-02-07 15:11:34 -03:00
..
format Add platform label to NFD application pods or namespace 2024-02-07 15:11:34 -03:00