Deploys Red Hat Developer Hub (RHDH) test instances on OpenShift, from pull requests or locally. The primary use case is RHDH Test Day: many independent instances on a single cluster, each in its own namespace, sharing one Keycloak.
- Helm and Operator installation methods
- RHDH 2.2 and
next—2.2(newest tag on the line), a patch release (2.2.3) or a CI build (2.2-120-CI) used as given, ornextfor the newest CI stream. An exact chart tag that does not exist fails before anything is created on the cluster. - Shared Keycloak — one Keycloak per cluster, one OIDC client per namespace,
test users
test1(admin) andtest2(developer) - No telemetry — the Segment analytics provider is disabled; Adoption Insights stays enabled
- Optional plugins —
kubernetes,bulk-import,intelligent-assistant,orchestrator,scorecard,rbac,lighthouse - Configuration verification — renders the deployment and runs the real
plugin installer before anything is applied (
make verify-plugins)
Comment on a pull request to deploy:
/test deploy <helm|operator> <version> [duration] [--plugins <list>]
Examples:
/test deploy helm 2.2 4h
/test deploy operator next 3h
/test deploy helm 2.2 4h --plugins kubernetes,rbac
The bot replies with the RHDH URL, the OpenShift console link, the parsed
command, and cluster credentials. Deployments run for the requested duration
(default 3h, maximum 4h). The parser reads the newest comment that starts with
/test deploy or /test redeploy, ignoring leading blank lines, and takes the
command from its first non-empty line.
Prow job status: https://prow.ci.openshift.org/?repo=redhat-developer%2Frhdh-test-instance&type=presubmit&job=pull-ci-redhat-developer-rhdh-test-instance-main-deploy
To test configuration changes, open a PR with the modified config/ or
resources/ files and deploy from that PR.
The Prow step currently forwards only
--plugins. Passing--withor other flags through the PR comment requires a change inopenshift/release.
Requirements: oc (logged in), helm, jq, Mike Farah's yq v4, make,
skopeo, python3, and podman for containerized operator installation.
cp .env.example .env # optional; needed for tokens or LLM providers
make deploy-helm VERSION=2.2
make deploy-operator VERSION=2.2make install-operator VERSION=2.2 installs the Operator through OLM. It runs
in the e2e-runner container because it needs umoci, opm and skopeo. It is
only required once per cluster.
make deploy-helm VERSION=2.2 PLUGINS=kubernetes,rbac
make deploy-helm VERSION=2.2 PLUGINS=all,-orchestrator
make deploy-helm VERSION=next NAMESPACE=team-a
make status
make logs
make url
make undeploy-helm # keep shared Keycloak and the Operator
make undeploy-keycloak # only when no instances remain
make uninstall-operator # refuses while Backstage instances exist
make uninstall-operator FORCE=true # also removes the CRDs and all instances
make clean # namespace + cluster-scoped leftoversmake install-operator VERSION=2.2 # once per cluster
make deploy-keycloak # once: shared Keycloak, realm, test users
make deploy-helm VERSION=2.2 NAMESPACE=td-1
make deploy-operator VERSION=2.2 NAMESPACE=td-2
make smoke NAMESPACE=td-1 ABSENT_PLUGINS=intelligent-assistantmake clean NAMESPACE=td-1 removes the namespace, its Keycloak OIDC client and
its cluster-scoped leftovers, and leaves the other instances signed in.
| Variable | Default | Description |
|---|---|---|
NAMESPACE |
rhdh |
Target namespace |
VERSION |
2.2 |
2.2, 2.2.3, 2.2-<build>-CI, or next |
PLUGINS |
(empty) | Comma-separated plugins, all, or all,-name |
USE_CONTAINER |
false |
Run the deployment inside the e2e-runner container |
CATALOG_INDEX_IMAGE |
bundled with the chart/Operator | Full plugin catalog image (registry/repository:tag or digest) |
CATALOG_INDEX_TAG |
(empty) | Shortcut for quay.io/rhdh/plugin-catalog-index:<tag> |
RHDH_IMAGE |
chart/Operator default | RHDH container image override |
KEYCLOAK_NS |
rhdh-keycloak |
Namespace of the shared Keycloak |
OPERATOR_NAMESPACE |
rhdh-operator |
Namespace of the RHDH Operator |
RUNNER_IMAGE |
quay.io/rhdh-community/rhdh-e2e-runner:main |
Container image for install-operator |
RHDH_GITHUB_TOKEN |
(empty) | Opt-in GitHub token; public access is the default |
FORCE |
false |
Allow uninstall-operator while instances still exist |
Every optional feature is selected with PLUGINS / --plugins. all enables
everything; -name excludes a plugin (all,-orchestrator).
| Plugin | What it adds |
|---|---|
kubernetes |
Kubernetes and Topology plugins, the service account read access they need, and a topology-test entity |
bulk-import |
Bulk import of existing repositories (needs RHDH_GITHUB_TOKEN) |
intelligent-assistant |
Intelligent Assistant with the MCP actions backend, optional LLM provider, and MCP client access |
orchestrator |
Orchestrator plugins plus the Serverless/Logic infrastructure |
scorecard |
Scorecard metrics (GitHub, OpenSSF, Dependabot, SonarQube, filecheck) |
rbac |
RBAC frontend, permission framework, and test policies |
lighthouse |
Lighthouse audit service and plugin |
keycloak is always installed — OIDC through the shared Keycloak is the
sign-in method for every instance. The plugin name is still accepted for
compatibility.
Each plugin contributes resources/<name>/dynamic-plugins.yaml (a
dynamic-plugins document with a plugins: list, the same layout as the
Operator flavours), optionally resources/<name>/app-config.yaml, optional
cluster resources, and setup steps in scripts/config-plugins.sh.
Base deployments follow the product defaults: no hidden widgets, no copied
quickstart steps, no catalog overrides. Backstage replaces arrays when config
files are merged, so config/app-config-rhdh.yaml restates the product's
app.extensions defaults (landing page, search widget, TechDocs add-ons) before
adding the language list. The one intentional deviation is the homepage layout,
which mirrors RHDH core CI: page:home is disabled because the homepage plugin
registers page:homepage at /, and leaving both enabled shows two Home
destinations and an empty homepage. make verify-plugins fails if a product
default goes missing; report other wrong defaults as bugs rather than overriding
them locally.
make verify-plugins VERSION=2.2 PLUGINS=allThe script renders the Helm deployment with the real chart values, extracts the
plugin list and images from the rendered manifests, and runs the same
install-dynamic-plugins installer the init container runs. It fails on:
ref://entries the selected catalog cannot resolve- conflicting or duplicate plugin configuration
- plugin images that cannot be pulled
- pinned overlay images (
bs_<backstage>__…) that do not match the release app.extensionsentries that the product defaults require but the base config does not restate
It also renders the Backstage CR and checks the flavour selection.
On Apple Silicon, the RHDH image has to be emulated, which is slow. Add
--native to run the installer with the host's Node.js and skopeo instead:
bash scripts/verify-plugins.sh --version 2.2 --plugins all --nativeThe container run remains the authoritative check; GitHub Actions runs it for
the base configuration and for all plugins on 2.2, and for all plugins on
next, on every PR that touches configuration, weekly, and on demand
(.github/workflows/verify-plugins.yaml).
make smoke drives the deployed instance with Playwright: sign-in through
Keycloak, loaded-plugins API expectations, the home page defaults, the global
search box, the language selector, and the routes of the selected plugins.
make smoke NAMESPACE=rhdh EXPECT_PLUGINS=kubernetes,rbac ABSENT_PLUGINS=intelligent-assistantEXPECT_PLUGINS defaults to the resolved PLUGINS list and ABSENT_PLUGINS to
every plugin that was not selected. The first run needs
npx playwright install chromium. Failures keep a trace in e2e/results/.
Every /test deploy runs the same suite after the rollout and reports the
result as a PR comment. A smoke failure does not tear down the instance, so it
stays available for debugging.
Every instance uses OIDC through the shared Keycloak:
| User | Password | Groups | Role |
|---|---|---|---|
test1 |
test1@123 |
developers, admins, viewers | RBAC admin |
test2 |
test2@123 |
developers | RBAC developer |
RHDH_GITHUB_TOKEN is optional and only used when supplied. Without it,
catalog locations and Scorecard use public GitHub access and bulk import cannot
open pull requests. GitHub allows unauthenticated requests at 60 per hour per
IP, so many instances behind one cluster IP reach that limit during a catalog
refresh; that does not fail the catalog, it only delays entries.
.
├── config/
│ ├── app-config-rhdh.yaml # Base app-config
│ └── dynamic-plugins.yaml # includes: bundled defaults, plugins: []
├── helm/
│ ├── deploy.sh # Chart values, orchestrator infra, install
│ └── value_file.yaml # Chart values
├── operator/
│ ├── install-operator.sh # OLM installation from the published IIB
│ ├── deploy.sh # Applies the Backstage CR
│ ├── backstage.yaml # Backstage CR template (v1alpha5)
│ └── render-cr.sh # Renders the CR without cluster access
├── resources/
│ ├── catalog-entities/ # Catalog entity ConfigMaps (always applied)
│ ├── image-stream-imports/ # Image pre-imports
│ ├── rhdh-script-examples/ # Demo workloads for Topology/Kubernetes
│ ├── keycloak/ # Shared Keycloak: users, groups, values
│ └── <plugin>/ # Per-plugin config and resources
├── scripts/
│ ├── deployment-common.sh # Versions, plugins, merged configuration
│ ├── config-plugins.sh # Plugin setup/teardown executor
│ ├── setup-resources.sh # Namespace-scoped resources
│ ├── verify-plugins.sh # Pre-deployment verification
│ └── plugins/config-<name>-plugin.sh # Plugin setup/teardown steps
├── e2e/ # Playwright smoke checks (make smoke)
├── deploy.sh
├── teardown.sh
└── Makefile
deploy.sh builds two files before touching the cluster:
app-config-rhdh.yaml— the base config merged with every selected plugin'sapp-config.yaml. Maps merge recursively; arrays are replaced, exactly like Backstage's own config layering.dynamic-plugins.yaml—config/dynamic-plugins.yaml(the bundled defaults include and an empty plugin list) plus the selected plugins' entries.
Both are applied as ConfigMaps. Helm receives the plugin list as chart values; the Operator reads the ConfigMap. Component plugins shipped by the chart or the Operator flavours (Orchestrator, Intelligent Assistant) are not duplicated in the plugin list.
PR deployments get secrets from the Prow secret bundle, which is synced from
Google Secret Manager (GSM) with the e2e-secrets CLI tool. People read the
cluster admin credentials in Bitwarden, collection Rhdh Test Instance Ci Secrets, items ocp-cluster-creds/CLUSTER_ADMIN_USERNAME and
ocp-cluster-creds/CLUSTER_ADMIN_PASSWORD; Bitwarden and GSM are kept in sync
by the same tool. The deployment writes the application secrets into
rhdh-secrets in the instance namespace. Local deployments read .env.
SESSION_SECRET,BACKEND_SECRET,MCP_TOKENare generated when missing.KEYCLOAK_*are written by the Keycloak setup.RHDH_GITHUB_TOKEN,SONARQUBE_API_KEYand LLM provider credentials are only set when provided. The GitHub token is opt-in under its own name so aGITHUB_TOKENexported for other tools is never copied into the cluster.
oc get pods -n <namespace>
oc logs deployment/<redhat-developer-hub|backstage-developer-hub> -c install-dynamic-plugins -n <namespace>
oc get events -n <namespace> --sort-by=.lastTimestamp | tailIf the rollout fails, deploy.sh prints the dynamic plugin installer logs.
Keycloak problems:
oc get pods -n rhdh-keycloak
oc get route keycloak -n rhdh-keycloak
oc get secret keycloak-test-credentials -n rhdh-keycloak -o jsonpath='{.data}' | jq .