Commit aa43b53
committed
deploy: feat(tool/Postgresql): Set default host and port for Postgresql source (googleapis#1927)
### Description
This pull request addresses issue #41 by implementing default connection
values for the Postgresql data source. When a user does not specify a
host or port, the connection will now automatically default to
`localhost:5432`.
---
### Detailed Changes
- **docs/en/reference/prebuilt-tools.md**
-updated the env variables host and port to optional in the doc
- **internal/prebuiltconfigs/tools/postgres.yaml**
- Added the default values to host and port. Specifically, they are now
`host: ${POSTGRES_HOST:localhost}` and `port: ${POSTGRES_PORT:5432}`.
This allows the configuration loader to directly use `"localhost"` or
`"5432"` as a fallback if the `POSTGRES_HOST` or `POSTGRES_PORT`
environment variables are not set.
---
### PR Checklist
Thank you for opening a Pull Request! Before submitting your PR, there
are a few things you can do to make sure it goes smoothly:
- [ ] Make sure you reviewed
CONTRIBUTING.md
- [ ] Make sure to open an issue as a
bug/issue
before writing your code! That way we can discuss the change, evaluate
designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)
- [ ] Make sure to add ! if this involve a breaking change
🛠️ **Fixes** #41
---------
Co-authored-by: Averi Kitsch <akitsch@google.com> 7e6e88a1 parent effc798 commit aa43b53
File tree
300 files changed
+306
-305
lines changed- about
- faq
- categories
- concepts
- telemetry
- getting-started
- configure
- introduction
- local_quickstart_go
- local_quickstart_js
- local_quickstart
- mcp_quickstart
- how-to
- connect-ide
- alloydb_pg_admin_mcp
- alloydb_pg_mcp
- bigquery_mcp
- cloud_sql_mssql_admin_mcp
- cloud_sql_mssql_mcp
- cloud_sql_mysql_admin_mcp
- cloud_sql_mysql_mcp
- cloud_sql_pg_admin_mcp
- cloud_sql_pg_mcp
- firestore_mcp
- looker_mcp
- mssql_mcp
- mysql_mcp
- neo4j_mcp
- postgres_mcp
- spanner_mcp
- sqlite_mcp
- connect_via_geminicli
- connect_via_mcp
- deploy_docker
- deploy_gke
- deploy_toolbox
- export_telemetry
- toolbox-ui
- reference
- cli
- prebuilt-tools
- resources
- authservices
- google
- prompts
- custom
- sources
- alloydb-admin
- alloydb-pg
- bigquery
- bigtable
- cassandra
- clickhouse
- cloud-healthcare
- cloud-monitoring
- cloud-sql-admin
- cloud-sql-mssql
- cloud-sql-mysql
- cloud-sql-pg
- couchbase
- dataplex
- dgraph
- elasticsearch
- firebird
- firestore
- http
- looker
- mindsdb
- mongodb
- mssql
- mysql
- neo4j
- oceanbase
- oracle
- postgres
- redis
- serverless-spark
- singlestore
- spanner
- sqlite
- tidb
- trino
- valkey
- yugabytedb
- tools
- alloydbainl
- alloydb-ai-nl
- alloydb
- alloydb-create-cluster
- alloydb-create-instance
- alloydb-create-user
- alloydb-get-cluster
- alloydb-get-instance
- alloydb-get-user
- alloydb-list-clusters
- alloydb-list-instances
- alloydb-list-users
- alloydb-wait-for-operation
- bigquery
- bigquery-analyze-contribution
- bigquery-conversational-analytics
- bigquery-execute-sql
- bigquery-forecast
- bigquery-get-dataset-info
- bigquery-get-table-info
- bigquery-list-dataset-ids
- bigquery-list-table-ids
- bigquery-search-catalog
- bigquery-sql
- bigtable
- bigtable-sql
- cassandra
- cassandra-cql
- clickhouse
- clickhouse-execute-sql
- clickhouse-list-databases
- clickhouse-list-tables
- clickhouse-sql
- cloudhealthcare
- cloud-healthcare-fhir-fetch-page
- cloud-healthcare-fhir-patient-everything
- cloud-healthcare-fhir-patient-search
- cloud-healthcare-get-dataset
- cloud-healthcare-get-dicom-store-metrics
- cloud-healthcare-get-dicom-store
- cloud-healthcare-get-fhir-resource
- cloud-healthcare-get-fhir-store-metrics
- cloud-healthcare-get-fhir-store
- cloud-healthcare-list-dicom-stores
- cloud-healthcare-list-fhir-stores
- cloud-healthcare-retrieve-rendered-dicom-instance
- cloud-healthcare-search-dicom-instances
- cloud-healthcare-search-dicom-series
- cloud-healthcare-search-dicom-studies
- cloudmonitoring
- cloud-monitoring-query-prometheus
- cloudsql
- cloudsqlcreatedatabase
- cloudsqlcreateusers
- cloudsqlgetinstances
- cloudsqllistdatabases
- cloudsqllistinstances
- cloudsqlmssqlcreateinstance
- cloudsqlmysqlcreateinstance
- cloudsqlpgcreateinstances
- cloudsqlwaitforoperation
- couchbase
- couchbase-sql
- dataform
- dataform-compile-local
- dataplex
- dataplex-lookup-entry
- dataplex-search-aspect-types
- dataplex-search-entries
- dgraph
- dgraph-dql
- elasticsearch
- elasticsearch-esql
- firebird
- firebird-execute-sql
- firebird-sql
- firestore
- firestore-add-documents
- firestore-delete-documents
- firestore-get-documents
- firestore-get-rules
- firestore-list-collections
- firestore-query-collection
- firestore-query
- firestore-update-document
- firestore-validate-rules
- http
- http
- looker
- looker-add-dashboard-element
- looker-conversational-analytics
- looker-create-project-file
- looker-delete-project-file
- looker-dev-mode
- looker-get-connection-databases
- looker-get-connection-schemas
- looker-get-connection-table-columns
- looker-get-connection-tables
- looker-get-connections
- looker-get-dashboards
- looker-get-dimensions
- looker-get-explores
- looker-get-filters
- looker-get-looks
- looker-get-measures
- looker-get-models
- looker-get-parameters
- looker-get-project-files
- looker-get-project-file
- looker-get-projects
- looker-health-analyze
- looker-health-pulse
- looker-health-vacuum
- looker-make-dashboard
- looker-make-look
- looker-query-sql
- looker-query-url
- looker-query
- looker-run-dashboard
- looker-run-look
- looker-update-project-file
- mindsdb
- mindsdb-execute-sql
- mindsdb-sql
- mongodb
- mongodb-aggregate
- mongodb-delete-many
- mongodb-delete-one
- mongodb-find-one
- mongodb-find
- mongodb-insert-many
- mongodb-insert-one
- mongodb-update-many
- mongodb-update-one
- mssql
- mssql-execute-sql
- mssql-list-tables
- mssql-sql
- mysql
- mysql-execute-sql
- mysql-list-active-queries
- mysql-list-table-fragmentation
- mysql-list-tables-missing-unique-indexes
- mysql-list-tables
- mysql-sql
- neo4j
- neo4j-cypher
- neo4j-execute-cypher
- neo4j-schema
- oceanbase
- oceanbase-execute-sql
- oceanbase-sql
- oracle
- oracle-execute-sql
- oracle-sql
- postgres
- postgres-execute-sql
- postgres-list-active-queries
- postgres-list-available-extensions
- postgres-list-installed-extensions
- postgres-list-schemas
- postgres-list-tables
- postgres-list-views
- postgres-sql
- redis
- redis
- serverless-spark
- serverless-spark-cancel-batch
- serverless-spark-get-batch
- serverless-spark-list-batches
- singlestore
- singlestore-execute-sql
- singlestore-sql
- spanner
- spanner-execute-sql
- spanner-list-tables
- spanner-sql
- sqlite
- sqlite-execute-sql
- sqlite-sql
- tidb
- tidb-execute-sql
- tidb-sql
- trino
- trino-execute-sql
- trino-sql
- utility
- wait
- valkey
- valkey
- yuagbytedb
- yugabytedb-sql
- samples
- alloydb
- ai-nl
- mcp_quickstart
- bigquery
- local_quickstart
- mcp_quickstart
- looker
- looker_gemini_oauth
- looker_gemini
- looker_mcp_inspector
- sdks
- go-sdk
- js-sdk
- python-sdk
- tags
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
300 files changed
+306
-305
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
0 commit comments