You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit adds a CLI flag quota_project such that users may provide a
project against which the SQL Admin API quota is calculated. Typically,
this flag will be used for internal development purposes.
Note: there is an API option WithQuotaProject that does the same thing.
However, that option is not compatible with WithHTTPClient and so we
manually add the quota project instead.
Copy file name to clipboardExpand all lines: cmd/cloud_sql_proxy/cloud_sql_proxy.go
+44-1Lines changed: 44 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -130,8 +130,10 @@ unavailable.`,
130
130
// Setting to choose what API to connect to
131
131
host=flag.String("host", "",
132
132
`When set, the proxy uses this host as the base API path. Example:
133
-
https://sqladmin.googleapis.com`,
133
+
https://sqladmin.googleapis.com`,
134
134
)
135
+
quotaProject=flag.String("quota_project", "",
136
+
`Specifies the project to use for Cloud SQL Admin API quota tracking.`)
135
137
136
138
// Settings for healthcheck
137
139
useHTTPHealthCheck=flag.Bool("use_http_health_check", false, "When set, creates an HTTP server that checks and communicates the health of the proxy client.")
0 commit comments