Comment 4 for bug 2029303

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to config (master)

Reviewed: https://review.opendev.org/c/starlingx/config/+/890570
Committed: https://opendev.org/starlingx/config/commit/612e70f4e20498a2f6ea528a6aa1072840287477
Submitter: "Zuul (22348)"
Branch: master

commit 612e70f4e20498a2f6ea528a6aa1072840287477
Author: Joshua Reed <email address hidden>
Date: Fri Aug 4 11:15:27 2023 -0700

    Better control over chart list generation.

    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.
    Instead the logic would rely on the resources present in
    the top-level application kustomization.yaml manifest to
    determine what FluxCD charts are enabled. As this manifest
    is changed dynamically based on the the application plugin
    use of the FluxCDKustomizeOperator, the resulting top-level
    application kustomization.yaml could change from one
    overrides generation call to the next.

    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)
    3. 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.

    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.

    Closes-Bug: 2029303

    Change-Id: Ia737322100159d342a4ac4f2471bb3f0c18adafb
    Signed-off-by: Joshua Reed <email address hidden>