Skip to content

Commit bac4e8c

Browse files
authored
export fuse namespace attribute dependant on install type (#589)
1 parent 5b3879e commit bac4e8c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/common/docsHelpers.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ const getMiddlewareServiceAttrs = middlewareServices => {
9696
'amq-broker-amqp-url': middlewareServices.amqCredentials.url,
9797
'amq-credentials-username': middlewareServices.amqCredentials.username,
9898
'amq-credentials-password': middlewareServices.amqCredentials.password,
99-
'apicurio-url': getUrlFromMiddlewareServices(middlewareServices, DEFAULT_SERVICES.APICURIO)
99+
'apicurio-url': getUrlFromMiddlewareServices(middlewareServices, DEFAULT_SERVICES.APICURIO),
100+
'fuse-namespace': getFuseNamespace(username)
100101
};
101102

102103
if (window.OPENSHIFT_CONFIG && window.OPENSHIFT_CONFIG.optionalProvisionServices.length > 0) {
@@ -143,4 +144,12 @@ const getDefaultAdocAttrs = walkthroughId => ({
143144
imagesdir: `/walkthroughs/${walkthroughId}/files/`
144145
});
145146

147+
const getFuseNamespace = userName => {
148+
if (isWorkshopInstallation) {
149+
return `${userName}-fuse`;
150+
}
151+
152+
return 'redhat-rhmi-fuse';
153+
};
154+
146155
export { getDocsForWalkthrough, getDefaultAdocAttrs, getWorkshopUrl, getOpenshiftHost, isWorkshopInstallation };

0 commit comments

Comments
 (0)