Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
"eamodio.gitlens",
"lllllllqw.jsdoc",
"Orta.vscode-jest",
"github.vscode-github-actions"
"github.vscode-github-actions",
"GitHub.vscode-pull-request-github"
]
}
},
Expand Down
26 changes: 5 additions & 21 deletions .devcontainer/postCreateCommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Loading