-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Object Browser: access S3 endpoint via console proxy
- Loading branch information
1 parent
01f914e
commit 3c6b543
Showing
10 changed files
with
120 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
import { | ||
CONSOLE_PROXY_ROOT_PATH, | ||
MCO_PROXY_ROOT_PATH, | ||
} from '@odf/shared/constants/common'; | ||
|
||
// ACM thanos proxy endpoint | ||
export const ACM_ENDPOINT = | ||
'/api/proxy/plugin/odf-multicluster-console/acm-thanos-querier'; | ||
export const ACM_ENDPOINT = `${MCO_PROXY_ROOT_PATH}/acm-thanos-querier`; | ||
// ACM thanos dev endpoint | ||
export const DEV_ACM_ENDPOINT = '/acm-thanos-querier'; | ||
// ACM application details page endpoint | ||
export const applicationDetails = | ||
'/multicloud/applications/details/:namespace/:name'; | ||
// ACM search api proxy endpoint | ||
export const ACM_SEARCH_PROXY_ENDPOINT = | ||
'/api/proxy/plugin/acm/console/multicloud/proxy/search'; | ||
export const ACM_SEARCH_PROXY_ENDPOINT = `${CONSOLE_PROXY_ROOT_PATH}/acm/console/multicloud/proxy/search`; | ||
// MCO DR navigation item base route | ||
export const DR_BASE_ROUTE = '/multicloud/data-services/disaster-recovery'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export const expandStorageUXBackendEndpoint = | ||
'/api/proxy/plugin/odf-console/provider-proxy/expandstorage'; | ||
import { ODF_PROXY_ROOT_PATH } from '@odf/shared/constants/common'; | ||
|
||
export const expandStorageUXBackendEndpoint = `${ODF_PROXY_ROOT_PATH}/provider-proxy/expandstorage`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
const ROSA_PROXY_ENDPOINT = '/api/proxy/plugin/odf-console/rosa-prometheus'; | ||
import { ODF_PROXY_ROOT_PATH } from '@odf/shared/constants/common'; | ||
|
||
const ROSA_PROXY_ENDPOINT = `${ODF_PROXY_ROOT_PATH}/rosa-prometheus`; | ||
|
||
export const usePrometheusBasePath = () => | ||
window.SERVER_FLAGS.branding === 'rosa' ? ROSA_PROXY_ENDPOINT : ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { ODF_PROXY_ROOT_PATH } from '@odf/shared/constants/common'; | ||
|
||
export const ODF_S3_PROXY_PATH = `${ODF_PROXY_ROOT_PATH}/s3`; | ||
export const S3_INTERNAL_ENDPOINT_PORT = 443; | ||
export const S3_INTERNAL_ENDPOINT_PREFIX = 'https://s3.'; | ||
export const S3_INTERNAL_ENDPOINT_SUFFIX = '.svc.cluster.local'; | ||
export const S3_LOCAL_ENDPOINT = 'http://localhost:6001'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from './commands'; | ||
export * from './constants'; | ||
export * from './types'; |