File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,8 @@ import { CLASSES } from '../configs/inversify.types';
2121export class DevfilesHelper {
2222 public getInternalClusterURLToDevFile ( devFileName : string ) : string {
2323 const devfileSampleURIPrefix : string = `/dashboard/api/airgap-sample/devfile/download?id=${ devFileName } ` ;
24- let serviceClusterIp : string = '' ;
25- let servicePort : string = '' ;
26- serviceClusterIp = this . getShellExecutor ( ) . executeArbitraryShellScript (
27- `oc get svc devspaces-dashboard -n ${ BASE_TEST_CONSTANTS . TS_PLATFORM } -${ BASE_TEST_CONSTANTS . TESTING_APPLICATION_NAME ( ) } -o=jsonpath='{.spec.clusterIP}'`
28- ) ;
29- servicePort = this . getShellExecutor ( ) . executeArbitraryShellScript (
30- `oc get svc devspaces-dashboard -n ${ BASE_TEST_CONSTANTS . TS_PLATFORM } -${ BASE_TEST_CONSTANTS . TESTING_APPLICATION_NAME ( ) } -o=jsonpath='{.spec.ports[*].port}'`
31- ) ;
32- return `http://${ serviceClusterIp } :${ servicePort } ${ devfileSampleURIPrefix } ` ;
24+
25+ return `http://devspaces-dashboard.openshift-devspaces.svc:8080${ devfileSampleURIPrefix } ` ;
3326 }
3427
3528 /**
You can’t perform that action at this time.
0 commit comments