agent-substrate / agent-substrate/substrate

ate-setup: support Cloud SQL via the Cloud SQL Auth Proxy

未关闭
#1,561 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area/dev-infra kind/feature
主要语言
Go
星标
1.8k
派生
316
平均合并
2 天 43 分钟
30 天内合并 PR
287

描述

`hack/install-ate.sh` can back the ateapi store with Cloud SQL (see `tools/setup-gcp/cloud-sql.md`): setting `ATE_API_POSTGRES_CLOUDSQL_INSTANCE` writes the `CSQL_PROXY_*` settings into the
`ate-api-server-envvars` `ConfigMap`, synthesizes a passwordless IAM DSN into the `ate-api-server-secret-envvars` Secret, annotates the KSA for Workload Identity, and patches the Cloud SQL Auth
Proxy in as a native sidecar (`manifests/ate-install/cloudsql/proxy-sidecar-patch.yaml`).

`ate-setup` implements none of this. The `ATE_API_POSTGRES_CLOUDSQL_*` variables are ignored, so `deploy ate-system` on a Cloud SQL cluster deploys the bundled `StatefulSet`. Cloud SQL is still reachable from `ate-setup` today: it honors `ATE_API_POSTGRES_CONNECTION_STRING`, so an instance can be used as a plain external PostgreSQL with a password user and a direct private-IP DSN (`sslmode=require`), and the bundled StatefulSet is correctly skipped. What's missing is the proxy/IAM path — the supported, passwordless configuration — plus the sidecar reconcile and configuration stickiness that come with it.
The divergence is recorded in `cmd/ate-setup/differences.md` ("Cloud SQL is shell-only").

cc: @juli4n

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。