config/sysinv/sysinv/sysinv/sysinv
Joshua Reed 967eedadb7 Apply Helm Overrides to initially disabled charts.
The previous implementation of the _get_list_of_charts
method would not take into account whether or not a
particular application chart was enabled or disabled.

This change now only includes charts that are enabled, or
if the function caller asks for all of them with the
include_disabled override set.  The override is set as a
part of the perform_app_upload routine to ensure overrides
are generated and applied to all charts, including those
which are initially disabled.

This change also seeks to handle issues where the
kustomize-orig.yaml file is not created by the time the
perform_app_upload routine runs _get_list_of_charts by
including an extra check.

Finally, the override generation in the perform_app_apply
function is moved to happen first in the sequence of events
such that the app object is populated with overrides prior
to any other operations occuring.  This must be done to
ensure the correct chart list is used.

This fix ensures that:

1. When all charts are needed then an option can be specified
   (i.e. when determining all the container images needed for
   the application) This is done with include_disabled flag.
2. All possible charts, as filtered by the metadata/user
   driven and DB stored enabled status, are consistently
   returned regardless of the current state of the top-level
   application kustomization.yaml.
3. A final check for kustomization-orig.yaml is performed and
   the file is created, if missing, before
   _get_list_of_charts executes with include_disabled=True

Test Plan:
PASS: build-pkgs -a && build-image
PASS: AIO-SX full install with clean bootstrap
PASS: Enable the cms-replication chart on the dell-storage app
PASS: Use system helm-override-update to pass
      --set config.clusterID=ClusterA
PASS: system application-apply dell-storage
PASS: Check the YAML structure of the
      configmap/dell-replication-controller-config
      for ClusterA and properly formatted.
PASS: Additional check to ensure that stx-openstack application
      successfully uploads and applies.
PASS: Check that a helm override are generated even for an
      application that doesn't have a kustomize operator.  This
      was done for the metrics-server app.  A helm override was
      created and the subsequent metrics-server.yaml file in
      /opt/platform/helm contained the override after the
      system applciation-apply command was run.

Relates to previous attempt at a fix:
https://review.opendev.org/c/starlingx/config/+/890570

Closes-Bug: 2029303

Change-Id: I4c501b982e4061e5067ca0e8e43f37a9eecfcb68
Signed-off-by: Joshua Reed <joshua.reed@windriver.com>
2024-04-12 13:12:28 -06:00
..
agent Report port and device inventory after the worker manifest 2024-03-26 10:37:56 -04:00
api Merge "Fix usage of address_get_by_name" 2024-04-05 22:24:24 +00:00
cert_alarm Change cert-alarm service audit behavior 2024-03-05 12:52:18 -05:00
cert_mon Filter cert-mon for geo-redundancy in audit and DC_CertWatcher 2024-04-04 15:36:06 -04:00
cmd Implement IPsec Cert-Renewal Operation 2024-03-08 12:24:02 -03:00
common Fix usage of address_get_by_name 2024-04-05 10:56:47 -04:00
conductor Apply Helm Overrides to initially disabled charts. 2024-04-12 13:12:28 -06:00
db Fix runtime_config_get method to avoid type error 2024-03-21 17:12:17 -03:00
helm Merge "Fix delete process to apps that have charts disabled" 2024-03-07 13:43:22 +00:00
ipsec_auth Update swanctl.conf cacerts w/ system-local-ca files 2024-03-28 13:40:10 +00:00
loads Update extract playbooks target directory 2023-05-02 13:50:36 +00:00
objects New RESTful API and DB schema for network to address-pools. 2024-03-06 07:34:14 -03:00
openstack Restore openstack/common/context file 2023-05-24 12:43:16 +00:00
puppet Add retry robustness for Kubernetes upgrade control plane 2024-03-19 08:49:36 -04:00
tests Merge "Fix usage of address_get_by_name" 2024-04-05 22:24:24 +00:00
zmq_rpc New RESTful API and DB schema for network to address-pools. 2024-03-06 07:34:14 -03:00
__init__.py Fix tox certificate issues in python2 2021-11-18 15:14:51 -06:00
_i18n.py Eliminate sdist step from sysinv zuul 2021-04-12 09:34:17 -05:00
netconf.py Fix bad syntax in requirements.txt file 2021-09-14 09:15:56 -05:00
sanity_coverage.py Fix tox-docs failing sphinx 2022-05-31 13:56:30 +00:00
version.py Remove python2 jobs from zuul for this repo 2023-02-07 19:36:45 +00:00