Skip to content

Commit da647f2

Browse files
committed
chore(dcm): wire DCM_API_URL and document legacy env var
Assisted-By: Claude (Anthropic) Signed-off-by: Gloria Ciavarrini <gciavarrini@redhat.com>
1 parent daee6e4 commit da647f2

8 files changed

Lines changed: 12 additions & 8 deletions

File tree

workspaces/dcm/app-config.production.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ backend:
1111
connection: ':memory:'
1212

1313
dcm:
14+
apiUrl: ${DCM_API_URL:-}
15+
# Legacy env var; kept until deploy configs switch to DCM_API_URL.
1416
apiGatewayUrl: ${DCM_API_GATEWAY_URL:-}
1517
ssoBaseUrl: ${DCM_SSO_BASE_URL:-}
1618
clientId: ${DCM_CLIENT_ID:-}

workspaces/dcm/app-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ dcm:
6565
- security-baseline
6666
- compliance-pci
6767
- audit-logging
68-
# Base URL of the DCM API Gateway. All three API services (catalog,
68+
# Base URL of the DCM control plane. All three API services (catalog,
6969
# policy-manager, providers) are routed through this single endpoint.
7070
# Override in app-config.local.yaml for local development.
71-
# apiGatewayUrl: https://your-api-gateway.example.com
71+
# apiUrl: https://your-control-plane.example.com
7272
#
7373
# SSO credentials for the backend to obtain a bearer token:
7474
# ssoBaseUrl: https://sso.redhat.com

workspaces/dcm/plugins/dcm-backend/app-config.dynamic.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
dcm:
2-
# Base URL of the DCM API Gateway (required).
2+
# Base URL of the DCM control plane (required).
3+
apiUrl: ${DCM_API_URL}
4+
# Legacy env var; kept until deploy configs switch to DCM_API_URL.
35
apiGatewayUrl: ${DCM_API_GATEWAY_URL}
46

57
# SSO configuration for the backend to obtain bearer tokens via

workspaces/dcm/plugins/dcm-common/src/clients/CatalogClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { DcmBaseClient } from './DcmBaseClient';
3030
*
3131
* All requests are sent to `/api/dcm/proxy/<path>` where the backend
3232
* strips the `/proxy` prefix and forwards to:
33-
* `{dcm.apiGatewayUrl}/api/v1alpha1/<path>`
33+
* `{dcm.apiUrl}/api/v1alpha1/<path>`
3434
*
3535
* @public
3636
*/

workspaces/dcm/plugins/dcm-common/src/clients/DcmBaseClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const PLUGIN_ID = 'dcm';
2323
* Base class shared by all DCM API clients.
2424
*
2525
* Routes every call through the dcm-backend secure proxy:
26-
* `GET /api/dcm/proxy/<path>` → `{dcm.apiGatewayUrl}/api/v1alpha1/<path>`
26+
* `GET /api/dcm/proxy/<path>` → `{dcm.apiUrl}/api/v1alpha1/<path>`
2727
*
2828
* @public
2929
*/

workspaces/dcm/plugins/dcm-common/src/clients/PolicyManagerClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { DcmBaseClient } from './DcmBaseClient';
2323
*
2424
* All requests are sent to `/api/dcm/proxy/<path>` where the backend
2525
* strips the `/proxy` prefix and forwards to:
26-
* `{dcm.apiGatewayUrl}/api/v1alpha1/<path>`
26+
* `{dcm.apiUrl}/api/v1alpha1/<path>`
2727
*
2828
* @public
2929
*/

workspaces/dcm/plugins/dcm-common/src/clients/ProvidersClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { DcmBaseClient } from './DcmBaseClient';
2323
*
2424
* All requests are sent to `/api/dcm/proxy/<path>` where the backend
2525
* strips the `/proxy` prefix and forwards to:
26-
* `{dcm.apiGatewayUrl}/api/v1alpha1/<path>`
26+
* `{dcm.apiUrl}/api/v1alpha1/<path>`
2727
*
2828
* @public
2929
*/

workspaces/dcm/plugins/dcm-common/src/clients/ResourcesClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import type {
2525
* Default implementation of {@link ResourcesApi}.
2626
*
2727
* Routes calls through the dcm-backend secure proxy to the
28-
* `/service-type-instances` endpoint of the DCM API Gateway.
28+
* `/service-type-instances` endpoint of the DCM control plane.
2929
*
3030
* @public
3131
*/

0 commit comments

Comments
 (0)