Skip to content

Commit 1a9e1fa

Browse files
Ambient Code Botclaude
andcommitted
fix(control-plane): default BackendURL to AMBIENT_API_SERVER_URL
The old default pointed at the legacy backend-service which no longer exists. The runner needs BACKEND_API_URL to call /credentials/{id}/token; defaulting to the API server URL means no extra env var is needed in existing deployments. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent d0a19d9 commit 1a9e1fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • components/ambient-control-plane/internal/config

components/ambient-control-plane/internal/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func Load() (*ControlPlaneConfig, error) {
5757
Reconcilers: parseReconcilers(envOrDefault("RECONCILERS", "tally,kube")),
5858
RunnerImage: envOrDefault("RUNNER_IMAGE", "quay.io/ambient_code/vteam_claude_runner:latest"),
5959
RunnerGRPCUseTLS: os.Getenv("AMBIENT_GRPC_USE_TLS") == "true",
60-
BackendURL: envOrDefault("BACKEND_API_URL", "http://backend-service.ambient-code.svc:8080/api"),
60+
BackendURL: envOrDefault("BACKEND_API_URL", envOrDefault("AMBIENT_API_SERVER_URL", "http://localhost:8000")),
6161
Namespace: envOrDefault("NAMESPACE", "ambient-code"),
6262
AnthropicAPIKey: os.Getenv("ANTHROPIC_API_KEY"),
6363
VertexEnabled: os.Getenv("USE_VERTEX") == "1" || os.Getenv("USE_VERTEX") == "true",

0 commit comments

Comments
 (0)