Commit 43d3fdd 1 parent 740ef2d commit 43d3fdd Copy full SHA for 43d3fdd
File tree 1 file changed +2
-9
lines changed
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';
21
21
export class DevfilesHelper {
22
22
public getInternalClusterURLToDevFile ( devFileName : string ) : string {
23
23
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 } ` ;
33
26
}
34
27
35
28
/**
You can’t perform that action at this time.
0 commit comments