Skip to content

Commit d4d24d6

Browse files
gustavoliraclaude
andauthored
fix(ci): disable operator-injected lightspeed plugins to fix {{inherit}} resolution (#4791)
* fix(ci): disable operator-injected lightspeed plugins to fix {{inherit}} resolution The RHDH operator's lightspeed flavor (enabledByDefault: true) injects lightspeed plugins from registry.access.redhat.com with {{inherit}}. The catalog index only provides lightspeed from ghcr.io, so {{inherit}} cannot resolve, causing InstallException in operator deployments. Add disabled: true entries for both lightspeed plugins in values_showcase and values_showcase-rbac. The operator merge gives priority to user ConfigMap, so these override the flavor defaults and prevent the error. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(ci): add dynamic-plugins ConfigMap to showcase-runtime operator deployment The showcase-runtime namespace was deployed without a dynamic-plugins ConfigMap, so the operator used only its built-in defaults (including lightspeed with {{inherit}}). This caused install-dynamic-plugins to fail with exit code 1, breaking all external database (Azure/RDS) tests. Add config::create_dynamic_plugins_config call for the runtime namespace and reference the ConfigMap in rhdh-start-runtime.yaml via dynamicPluginsConfigMapName, matching the pattern of other operator CRs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9477df8 commit d4d24d6

4 files changed

Lines changed: 19 additions & 0 deletions

File tree

.ci/pipelines/jobs/ocp-operator.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ run_operator_runtime_config_change_tests() {
9191
local runtime_url="https://backstage-${RELEASE_NAME}-${NAME_SPACE_RUNTIME}.${K8S_CLUSTER_ROUTER_BASE}"
9292
create_postgres_cred_secret "${NAME_SPACE_RUNTIME}" "tmp" "tmp" "RHDH_RUNTIME_URL=${runtime_url}"
9393
oc apply -f "$DIR/resources/postgres-db/postgres-crt.yaml" -n "${NAME_SPACE_RUNTIME}"
94+
config::create_dynamic_plugins_config "${DIR}/value_files/${HELM_CHART_VALUE_FILE_NAME}" "/tmp/configmap-dynamic-plugins-runtime.yaml"
95+
oc apply -f /tmp/configmap-dynamic-plugins-runtime.yaml -n "${NAME_SPACE_RUNTIME}"
9496
deploy_rhdh_operator "${NAME_SPACE_RUNTIME}" "${DIR}/resources/rhdh-operator/rhdh-start-runtime.yaml" "true"
9597
testing::run_tests "${RELEASE_NAME}" "${NAME_SPACE_RUNTIME}" "${PW_PROJECT_SHOWCASE_RUNTIME}" "${runtime_url}" || true
9698
}

.ci/pipelines/resources/rhdh-operator/rhdh-start-runtime.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ spec:
2929
configMaps:
3030
- name: app-config-rhdh
3131
mountPath: /opt/app-root/src
32+
dynamicPluginsConfigMapName: dynamic-plugins
3233
extraFiles:
3334
mountPath: /opt/app-root/src
3435
secrets:

.ci/pipelines/value_files/values_showcase-rbac.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,14 @@ global:
282282
frontend:
283283
red-hat-developer-hub.backstage-plugin-orchestrator-form-widgets: {}
284284

285+
# Disable operator-injected lightspeed plugins (lightspeed flavor is enabledByDefault in the RHDH operator).
286+
# The catalog index only provides lightspeed from ghcr.io, not registry.access.redhat.com,
287+
# so {{inherit}} cannot resolve. Disable to prevent InstallException in operator deployments.
288+
- package: 'oci://registry.access.redhat.com/rhdh/red-hat-developer-hub-backstage-plugin-lightspeed:{{ "{{" }}inherit{{ "}}" }}'
289+
disabled: true
290+
- package: 'oci://registry.access.redhat.com/rhdh/red-hat-developer-hub-backstage-plugin-lightspeed-backend:{{ "{{" }}inherit{{ "}}" }}'
291+
disabled: true
292+
285293
# -- Upstream Backstage [chart configuration](https://github.com/backstage/charts/blob/main/charts/backstage/values.yaml)
286294
# @default -- Use Openshift compatible settings
287295
upstream:

.ci/pipelines/value_files/values_showcase.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,14 @@ global:
302302
frontend:
303303
red-hat-developer-hub.backstage-plugin-orchestrator-form-widgets: {}
304304

305+
# Disable operator-injected lightspeed plugins (lightspeed flavor is enabledByDefault in the RHDH operator).
306+
# The catalog index only provides lightspeed from ghcr.io, not registry.access.redhat.com,
307+
# so {{inherit}} cannot resolve. Disable to prevent InstallException in operator deployments.
308+
- package: 'oci://registry.access.redhat.com/rhdh/red-hat-developer-hub-backstage-plugin-lightspeed:{{ "{{" }}inherit{{ "}}" }}'
309+
disabled: true
310+
- package: 'oci://registry.access.redhat.com/rhdh/red-hat-developer-hub-backstage-plugin-lightspeed-backend:{{ "{{" }}inherit{{ "}}" }}'
311+
disabled: true
312+
305313
# -- Upstream Backstage [chart configuration](https://github.com/backstage/charts/blob/main/charts/backstage/values.yaml)
306314
upstream:
307315
nameOverride: developer-hub

0 commit comments

Comments
 (0)