Skip to content

Commit

Permalink
Default installed services (#522)
Browse files Browse the repository at this point in the history
* use default installed services value of empty array when not set

* bump version to 2.18.11
  • Loading branch information
aidenkeating authored Oct 18, 2019
1 parent badeea6 commit 0ae5171
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "integreatly-web-app",
"version": "2.18.10",
"version": "2.18.11",
"private": true,
"proxy": "http://localhost:5001/",
"dependencies": {
Expand Down
5 changes: 3 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,7 @@ function getConfigData(req) {
const masterUri = isOpenShift4() ? OPENSHIFT_PROXY_PATH : `https://${process.env.OPENSHIFT_HOST}`;
const wssMasterUri = isOpenShift4() ? OPENSHIFT_PROXY_PATH : `wss://${process.env.OPENSHIFT_HOST}`;

const installedServices = process.env.INSTALLED_SERVICES || '{}';
return `window.OPENSHIFT_CONFIG = {
clientId: '${process.env.OPENSHIFT_OAUTHCLIENT_ID}',
accessTokenUri: 'https://${process.env.OPENSHIFT_OAUTH_HOST}/oauth/token',
Expand All @@ -658,8 +659,8 @@ function getConfigData(req) {
clusterType: '${process.env.CLUSTER_TYPE || ''}',
optionalWatchServices: ${JSON.stringify(arrayFromString(process.env.OPTIONAL_WATCH_SERVICES || '', ','))},
optionalProvisionServices: ${JSON.stringify(arrayFromString(process.env.OPTIONAL_PROVISION_SERVICES || '', ','))},
openshiftVersion: ${openshiftVersion},
provisionedServices: ${process.env.INSTALLED_SERVICES}
openshiftVersion: ${openshiftVersion},
provisionedServices: ${installedServices}
};`;
}

Expand Down

0 comments on commit 0ae5171

Please sign in to comment.