From 0f2e2d21de98491d2c95f23d6abe208769f55426 Mon Sep 17 00:00:00 2001 From: Daniel Edgar Date: Mon, 24 Aug 2026 14:34:43 +0000 Subject: [PATCH 1/2] update labinfo api endpoint --- .devcontainer/postCreateCommand.sh | 26 +++++--------------------- .env.example | 2 +- src/lib/constants.ts | 2 +- 3 files changed, 7 insertions(+), 23 deletions(-) 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"; } From 5a59b77fd82ed9ca403b8ba7001c43e893bca9bf Mon Sep 17 00:00:00 2001 From: Daniel Edgar Date: Mon, 24 Aug 2026 14:40:51 +0000 Subject: [PATCH 2/2] add pull requests extension to devcontainer --- .devcontainer/devcontainer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" ] } },