diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 2fc88e6..e19457e 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -55,7 +55,8 @@ "eamodio.gitlens", "lllllllqw.jsdoc", "Orta.vscode-jest", - "github.vscode-github-actions" + "github.vscode-github-actions", + "GitHub.vscode-pull-request-github" ] } }, diff --git a/.devcontainer/postCreateCommand.sh b/.devcontainer/postCreateCommand.sh index 6033013..128156b 100755 --- a/.devcontainer/postCreateCommand.sh +++ b/.devcontainer/postCreateCommand.sh @@ -11,30 +11,14 @@ curl --retry 12 --retry-all-errors -X PUT 'http://host.docker.internal:5123/mock { "httpRequest": { "method": "GET", - "path": "/labinfo" + "path": "/metadata" }, "httpResponse": { "body": { - "LabID": "87sdf8HDJSDH66asdg", - "dataPlaneKey": "YXJlYWxseWxvbmd2YWx1ZWhlcmU=", - "description": "NGINX One Lab", - "ns": false, - "nsRoles": { - "group_names": null, - "namespace_roles": [ - { - "namespace": "default", - "role": "arolenamehere" - } - ] - }, - "site": true, - "siteStatic": null, - "sqsQueue": "reallylongstringhere", - "sqsURL": "https://reallylongurlhere.io", - "tenant": "tenantnamehere", - "tenantURL": "https://tenanturlhere.io", - "token": null + "dep_id": "abc12345-5927-4afc-91e4-039412adc319", + "email": "name@example.com", + "lab_id": "abc12345", + "petname": "happy-sloth" } } } diff --git a/.env.example b/.env.example index 7e357c5..0d7b8ff 100644 --- a/.env.example +++ b/.env.example @@ -6,7 +6,7 @@ # For OpenShift, set KUBERNETES_API_URL to your cluster API endpoint. DEPLOYMENT_IDENTIFIER_RESPONSE_FIELD=petname # DEPLOYMENT_IDENTIFIER_API_URL=http://host.docker.internal:5123/petname # API endpoint for retrieving deployment identifier -# LABINFO_API_URL=http://host.docker.internal:5123/labinfo # API endpoint for retrieving lab information +# LABINFO_API_URL=http://host.docker.internal:5123/metadata # API endpoint for retrieving lab information # UDF_DEPLOYMENT_API_URL=http://metadata.udf/deployment # API endpoint for UDF deployment metadata REMOTE_DOCS_REPO_SERVER="https://raw.githubusercontent.com" REMOTE_DOCS_REPO_API_SERVER="https://api.github.com" diff --git a/src/lib/constants.ts b/src/lib/constants.ts index 043f1f5..1fd688e 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -16,5 +16,5 @@ export function getDeploymentIdentifierApiUrl(): string { * Returns the LabInfo API URL from environment or default. */ export function getLabInfoApiUrl(): string { - return process.env.LABINFO_API_URL || "http://host.docker.internal:5123/labinfo"; + return process.env.LABINFO_API_URL || "http://host.docker.internal:5123/metadata"; }