Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Use internal network url for plugin registry.
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
  • Loading branch information
AndrienkoAleksandr committed Nov 25, 2020
1 parent b5f115d commit f11d9df
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ export class ChePluginServiceImpl implements ChePluginService {

try {
const workspaceSettings: WorkspaceSettings = await this.workspaceService.getWorkspaceSettings();
if (workspaceSettings && workspaceSettings['cheWorkspacePluginRegistryUrl']) {
let uri = workspaceSettings['cheWorkspacePluginRegistryUrl'];
if (workspaceSettings && workspaceSettings['cheWorkspacePluginRegistryInternalUrl']) {
let uri = workspaceSettings['cheWorkspacePluginRegistryInternalUrl'];
console.log('[INFO] Plugin registry url is: ' + uri);

if (!uri.endsWith('/plugins/')) {
if (uri.endsWith('/')) {
Expand Down

0 comments on commit f11d9df

Please sign in to comment.