Skip to content

armgit / ax

Public Imported from GitHub
0

Agent Executor (AX) is Google's open agentic orchestration runtime

Go

Update GOOGLE_CLOUD_PROJECT for interactions path. (#294)

Junjie Wangc48baf33a0e9
diff --git a/internal/harness/antigravityinteractions/antigravityinteractions.go b/internal/harness/antigravityinteractions/antigravityinteractions.go
index f2aeeaf..430ed5a 100644
--- a/internal/harness/antigravityinteractions/antigravityinteractions.go
+++ b/internal/harness/antigravityinteractions/antigravityinteractions.go
@@ -77,7 +77,7 @@ const (
// Cloud project and location are read from these standard environment
// variables (see https://github.com/google/ax#authentication).
- envCloudProject = "PROJECT_ID"
+ envCloudProject = "GOOGLE_CLOUD_PROJECT"
envCloudLocation = "GOOGLE_CLOUD_LOCATION"
// defaultLocation is used when GOOGLE_CLOUD_LOCATION is unset.
defaultLocation = "global"
@@ -94,7 +94,7 @@ var _ harness.Execution = (*antigravityInteractionsExecution)(nil)
// AntigravityInteractionsConfig configures an AntigravityInteractionsHarness.
// Use New, which fills sensible defaults.
//
-// Cloud project and location come from the standard PROJECT_ID and
+// Cloud project and location come from the standard GOOGLE_CLOUD_PROJECT and
// GOOGLE_CLOUD_LOCATION environment variables.
type AntigravityInteractionsConfig struct {
// --- Required ---
@@ -145,7 +145,7 @@ func (c *AntigravityInteractionsConfig) withDefaults() {
}
}
-// cloudProject returns the Cloud project id from PROJECT_ID.
+// cloudProject returns the Cloud project id from GOOGLE_CLOUD_PROJECT.
func cloudProject() string {
return os.Getenv(envCloudProject)
}
diff --git a/manifests/ax-deployment.yaml b/manifests/ax-deployment.yaml
index 17bc95e..ff95ad0 100644
--- a/manifests/ax-deployment.yaml
+++ b/manifests/ax-deployment.yaml
@@ -94,8 +94,8 @@ spec:
command: ["/ax-app/ax", "harness", "antigravity-interactions",
"--host", "0.0.0.0", "--port", "80"]
env:
- - name: PROJECT_ID
- value: "${PROJECT_ID}"
+ - name: GOOGLE_CLOUD_PROJECT
+ value: "${GOOGLE_CLOUD_PROJECT}"
- name: AX_HARNESS_WORKDIR
value: "/workspace"
readyz: