Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

che #18552 Adding internal URL for che api, keycloak, plugin & devfile registries #2027

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions dev-scripts/deploy_custom_rh-che.sh
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ fi
# APPLY CHE CONFIGMAP
CHE_CONFIG_YAML=$(yq ".\"data\".\"CHE_KEYCLOAK_REALM\" = \"NULL\" |
.\"data\".\"CHE_KEYCLOAK_AUTH__SERVER__URL\" = \"NULL\" |
.\"data\".\"CHE_KEYCLOAK_AUTH__INTERNAL__SERVER__URL\" = \"NULL\" |
.\"data\".\"CHE_KEYCLOAK_USE__NONCE\" = \"false\" |
.\"data\".\"CHE_KEYCLOAK_CLIENT__ID\" = \"740650a2-9c44-4db5-b067-a3d1b2cd2d01\" |
.\"data\".\"CHE_KEYCLOAK_OIDC__PROVIDER\" = \"https://auth.prod-preview.openshift.io/api\" |
Expand All @@ -391,6 +392,7 @@ CHE_CONFIG_YAML=$(yq ".\"data\".\"CHE_KEYCLOAK_REALM\" = \"NULL\" |
CHE_CONFIG_YAML=$(echo "$CHE_CONFIG_YAML" | \
yq ".\"data\".\"CHE_HOST\" = \"rhche-$RH_CHE_PROJECT_NAMESPACE.apps.che-dev.x6e0.p1.openshiftapps.com\" |
.\"data\".\"CHE_API\" = \"http$SECURE://rhche-$RH_CHE_PROJECT_NAMESPACE.apps.che-dev.x6e0.p1.openshiftapps.com/api\" |
.\"data\".\"CHE_API_INTERNAL\" = \"http$SECURE://rhche-$RH_CHE_PROJECT_NAMESPACE.apps.che-dev.x6e0.p1.openshiftapps.com/api\" |
.\"data\".\"CHE_WEBSOCKET_ENDPOINT\" = \"ws$SECURE://rhche-$RH_CHE_PROJECT_NAMESPACE.apps.che-dev.x6e0.p1.openshiftapps.com/api/websocket\" |
.\"data\".\"CHE_WEBSOCKET_ENDPOINT__MINOR\" = \"ws$SECURE://rhche-$RH_CHE_PROJECT_NAMESPACE.apps.che-dev.x6e0.p1.openshiftapps.com/api/websocket-minor\" |
.\"metadata\".\"name\" = \"rhche\" |
Expand All @@ -399,6 +401,8 @@ CHE_CONFIG_YAML=$(echo "$CHE_CONFIG_YAML" | \
if [ "$RH_CHE_USE_CUSTOM_REGISTRIES" == "true" ]; then
CHE_CONFIG_YAML=$(echo "$CHE_CONFIG_YAML" | \
yq ".\"data\".\"CHE_WORKSPACE_PLUGIN__REGISTRY__URL\" = \"http$SECURE://che-plugin-registry-${RH_CHE_PROJECT_NAMESPACE}.apps.che-dev.x6e0.p1.openshiftapps.com/v3\" |
.\"data\".\"CHE_WORKSPACE_PLUGIN__REGISTRY__INTERNAL__URL\" = \"http$SECURE://che-plugin-registry-${RH_CHE_PROJECT_NAMESPACE}.apps.che-dev.x6e0.p1.openshiftapps.com/v3\" |
.\"data\".\"CHE_WORKSPACE_DEVFILE__REGISTRY__INTERNAL__URL\" = \"http$SECURE://che-devfile-registry-${RH_CHE_PROJECT_NAMESPACE}.apps.che-dev.x6e0.p1.openshiftapps.com/\" |
.\"data\".\"CHE_WORKSPACE_DEVFILE__REGISTRY__URL\" = \"http$SECURE://che-devfile-registry-${RH_CHE_PROJECT_NAMESPACE}.apps.che-dev.x6e0.p1.openshiftapps.com/\" ")
fi

Expand Down
4 changes: 4 additions & 0 deletions openshift/rh-che.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ data:
CHE_FABRIC8_ANALYTICS_WOOPRA__DOMAIN: 'NULL'
CHE_FABRIC8_END2END_PROTECT_VERIFY__WITH__IP: "false"
CHE_API: "https://che.prod-preview.openshift.io/api"
CHE_API_INTERNAL: "https://che.prod-preview.openshift.io/api"
CHE_CORS_ENABLED: "true"
CHE_FABRIC8_AUTH_ENDPOINT: "https://auth.prod-preview.openshift.io"
CHE_FABRIC8_MULTICLUSTER_OSO_PROXY_URL: "https://osoproxy.prod-preview.openshift.io"
CHE_FABRIC8_MULTITENANT: "true"
CHE_HOST: "che.prod-preview.openshift.io"
CHE_KEYCLOAK_AUTH__SERVER__URL: "NULL"
CHE_KEYCLOAK_AUTH__INTERNAL__SERVER__URL: "NULL"
CHE_KEYCLOAK_CLIENT__ID: "740650a2-9c44-4db5-b067-a3d1b2cd2d01"
CHE_KEYCLOAK_JS__ADAPTER__URL: "/api/fabric8-end2end/files/RhCheKeycloak.js"
CHE_KEYCLOAK_OIDC__PROVIDER: "https://auth.prod-preview.openshift.io/api"
Expand Down Expand Up @@ -57,7 +59,9 @@ data:
CHE_LOGS_APPENDERS_IMPL: "json"
CHE_MULTIUSER: "true"
CHE_WORKSPACE_PLUGIN__REGISTRY__URL: 'https://che-plugin-registry.prod-preview.openshift.io/v3'
CHE_WORKSPACE_PLUGIN__REGISTRY__INTERNAL__URL: 'https://che-plugin-registry.prod-preview.openshift.io/v3'
CHE_WORKSPACE_DEVFILE__REGISTRY__URL: 'https://che-devfile-registry.prod-preview.openshift.io/'
CHE_WORKSPACE_DEVFILE__REGISTRY__INTERNAL__URL: 'https://che-devfile-registry.prod-preview.openshift.io/'
CHE_PORT: "8080"
CHE_DEBUG_SERVER: "false"
SENTRY_ENVIRONMENT: 'dev'
Expand Down