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
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 ---
Expand Down Expand Up @@ -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)
}
Expand Down
4 changes: 2 additions & 2 deletions manifests/ax-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading