Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-1613

Preinstalled dynamic plugins config not loaded when another YAML file is specified in Helm config

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • None
    • Dynamic Plugins
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      Description of problem:

      With Helm chart config, when another YAML file is specified for dynamic plugins along with the dynamic-plugins.default.yaml and a preinstalled dynamic plugin is enabled, the pluginConfig section of that preinstalled dynamic plugin is not loaded.

      This Jira is referring to RBAC config but Deloitte saw this issue with the other (preinstalled) dynamic plugins as well, e.g. GitLab, Jenkins

       

      When the rbac plugin is referenced directly in the Helm config (under global.dynamic.plugins), the pluginConfig of this plugin is indeed executed.

      Prerequisites (if any, like setup, operators/versions):

      Install RHDH using Helm chart config

      Steps to Reproduce

      1. Create the configMap given in attached file named appeng-config-dynamic-plugins.yaml
      2. Upgrade Helm release by adding the config for enabling this configMap via extraVolumes and initContainers.volumeMounts under upstream.backstage:
        • extraVolumes:
          - name: devx-dynamic-plugins
            configMap:
              defaultMode: 420
              name: appeng-config-dynamic-plugins
        • initContainers.volumeMounts:
          - mountPath: /opt/app-root/src/test/dynamic-plugins.yaml
            name: devx-dynamic-plugins
            readOnly: true
            subPath: dynamic-plugins.yaml
      3. Reference the initContainer volumeMount under global.dynamic.includes:
        - dynamic-plugins.default.yaml
        - test/dynamic-plugins.yaml
      4. Click on Upgrade button to upgrade the Helm release

       

      Actual results:

      RBAC tab from Administrator page is missing. The default config for RBAC is shown in the attached file named rbac-plugin-pluginConfig.png. This default config doesn't seem to be applied with another YAML file for dynamic plugins is provided to Helm config (along with the default file).

      Expected results:

      RBAC tab on the Administrator page should have been visible and ready to use.

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

      When the rbac plugin is referenced directly in the Helm config (under global.dynamic.plugins), the pluginConfig of this plugin is indeed executed.

      Deloitte (or any other client) would want to enable all the pre-installed plugins + their own custom plugins in a separate YAML file instead of directly adding them in the Helm config.

       

      Following files are attached with this Jira:

      1. appeng-config-dynamic-plugins.yaml:
        • configMap for custom dynamic plugins with only two plugins enabled:
          • janus-idp-backstage-plugin-rbac
          • janus-idp-backstage-plugin-keycloak-backend-dynamic
      2. 01.1-helm-config-with-default_n_custom_config.png:
        • Screenshot showing the two YAML for dynamic plugins + extraVolumes + initContainers.volumeMounts Helm config
      3. 01.2-install-dynamic-plugins-logs.png:
        • install logs for dynamic plugins showing both config files being loaded for dynamic plugins
      4. 01.3-rbac_tab-missing.png:
        • Screenshot showing the missing RBAC tab
      5. 02.1-helm-config-with-only_custom_config.png:
        • Screenshot showing only one YAML (custom one) for dynamic plugins with the dynamic-plugins.default.yaml not in Helm config.
        • The dynamic-plugins.default.yaml is still included in the custom dynamic plugin configMap.
      6. 02.2-install-dynamic-plugins-logs.png:
        • install logs for dynamic plugins showing one config files being loaded for dynamic plugins
      7. 02.3-Administrator_link-missing.png:
        • Screenshot showing the missing Administrator link - maybe because the dynamic-plugins.default.yaml file is not provided in the Helm config
      8. 03.1-helm-config-with-plugin_n_default_n_custom_config.png:
        • Screenshot showing the two YAML for dynamic plugins + rbac plugin directly referenced in the Helm config under global.dynamic.plugins section
      9. 03.2-Administrator_link-Rbac_tab-visible.png:
        • Screenshot showing the both the Administrator link and RBAC tab available in the UI
      10. rbac-plugin-pluginConfig.png:
        • pluginConfig for RBAC plugin from dynamic-plugins.default.yaml file

        1. 02.1-helm-config-with-only_custom_config.png
          61 kB
          Sandip Gahlot
        2. rbac-plugin-pluginConfig.png
          72 kB
          Sandip Gahlot
        3. 03.1-helm-config-with-plugin_n_default_n_custom_config.png
          68 kB
          Sandip Gahlot
        4. custom-dynamic-plugins-cm.png
          101 kB
          Sandip Gahlot
        5. 02.2-install-dynamic-plugins-logs.png
          131 kB
          Sandip Gahlot
        6. 01.3-rbac_tab-missing.png
          202 kB
          Sandip Gahlot
        7. 01.2-install-dynamic-plugins-logs.png
          227 kB
          Sandip Gahlot
        8. 01.1-helm-config-with-default_n_custom_config.png
          238 kB
          Sandip Gahlot
        9. 03.2-Administrator_link-Rbac_tab-visible.png
          200 kB
          Sandip Gahlot
        10. 02.3-Administrator_link-missing.png
          234 kB
          Sandip Gahlot
        11. appeng-config-dynamic-plugins.yaml
          0.4 kB
          Sandip Gahlot
        12. appeng-config-rbac-policy.yaml
          0.9 kB
          Sandip Gahlot
        13. appeng-config-rbac.yaml
          0.3 kB
          Sandip Gahlot

              stlewis_2 Stan Lewis
              sgahlot@redhat.com Sandip Gahlot
              RHIDP - Dynamic Plugins
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: