-
Bug
-
Resolution: Not a Bug
-
Undefined
-
None
-
None
-
None
-
False
-
-
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
- Create the configMap given in attached file named appeng-config-dynamic-plugins.yaml
- 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
- extraVolumes:
- Reference the initContainer volumeMount under global.dynamic.includes:
- dynamic-plugins.default.yaml - test/dynamic-plugins.yaml
- 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:
- 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
- configMap for custom dynamic plugins with only two plugins enabled:
- 01.1-helm-config-with-default_n_custom_config.png:
- Screenshot showing the two YAML for dynamic plugins + extraVolumes + initContainers.volumeMounts Helm config
- 01.2-install-dynamic-plugins-logs.png:
- install logs for dynamic plugins showing both config files being loaded for dynamic plugins
- 01.3-rbac_tab-missing.png:
- Screenshot showing the missing RBAC tab
- 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.
- 02.2-install-dynamic-plugins-logs.png:
- install logs for dynamic plugins showing one config files being loaded for dynamic plugins
- 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
- 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
- 03.2-Administrator_link-Rbac_tab-visible.png:
- Screenshot showing the both the Administrator link and RBAC tab available in the UI
- rbac-plugin-pluginConfig.png:
- pluginConfig for RBAC plugin from dynamic-plugins.default.yaml file