diff --git a/src/common/docsHelpers.js b/src/common/docsHelpers.js index 991a54452..640ee85fe 100644 --- a/src/common/docsHelpers.js +++ b/src/common/docsHelpers.js @@ -96,7 +96,8 @@ const getMiddlewareServiceAttrs = middlewareServices => { 'amq-broker-amqp-url': middlewareServices.amqCredentials.url, 'amq-credentials-username': middlewareServices.amqCredentials.username, 'amq-credentials-password': middlewareServices.amqCredentials.password, - 'apicurio-url': getUrlFromMiddlewareServices(middlewareServices, DEFAULT_SERVICES.APICURIO) + 'apicurio-url': getUrlFromMiddlewareServices(middlewareServices, DEFAULT_SERVICES.APICURIO), + 'fuse-namespace': getFuseNamespace(username) }; if (window.OPENSHIFT_CONFIG && window.OPENSHIFT_CONFIG.optionalProvisionServices.length > 0) { @@ -143,4 +144,12 @@ const getDefaultAdocAttrs = walkthroughId => ({ imagesdir: `/walkthroughs/${walkthroughId}/files/` }); +const getFuseNamespace = userName => { + if (isWorkshopInstallation) { + return `${userName}-fuse`; + } + + return 'redhat-rhmi-fuse'; +}; + export { getDocsForWalkthrough, getDefaultAdocAttrs, getWorkshopUrl, getOpenshiftHost, isWorkshopInstallation };