Skip to content

Commit

Permalink
Enable keycloak plugin
Browse files Browse the repository at this point in the history
Enable Keycloak dynamic plugin.
  • Loading branch information
yogananth-subramanian committed Jan 3, 2024
1 parent ad52a7e commit b871443
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ci-scripts/rhdh-setup/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ backstage_install() {
${RHDH_IMAGE_REGISTRY} \
${RHDH_IMAGE_REPO} \
${RHDH_IMAGE_TAG} \
${KEYCLOAK_CLIENT_SECRET} \
${RHDH_NAMESPACE} \
' <"$chart_values" | tee "$TMP_DIR/chart-values.yaml" | helm upgrade --install "${RHDH_HELM_RELEASE_NAME}" --devel "${repo_name}/${RHDH_HELM_CHART}" ${version_arg} -n "${RHDH_NAMESPACE}" --values -
wait_to_start statefulset "${RHDH_HELM_RELEASE_NAME}-postgresql-read" 300 300
wait_to_start deployment "${RHDH_HELM_RELEASE_NAME}-developer-hub" 300 300
Expand Down
12 changes: 12 additions & 0 deletions ci-scripts/rhdh-setup/template/backstage/chart-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@ global:
clusterRouterBase: ${OPENSHIFT_APP_DOMAIN}
imagePullSecrets:
- rhdh-pull-secret
dynamic:
includes:
- dynamic-plugins.default.yaml
plugins:
- package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-keycloak-backend-dynamic
disabled: false
pluginConfig:
KEYCLOAK_BASE_URL: https://keycloak-${RHDH_NAMESPACE}.${OPENSHIFT_APP_DOMAIN}/auth
KEYCLOAK_LOGIN_REALM: backstage
KEYCLOAK_REALM: backstage
KEYCLOAK_CLIENT_ID: backstage
KEYCLOAK_CLIENT_SECRET: ${KEYCLOAK_CLIENT_SECRET}
route:
enabled: true
host: "{{ .Values.global.host }}"
Expand Down

0 comments on commit b871443

Please sign in to comment.