feat: psql v2#657
Merged
Merged
Conversation
f1f87f2 to
f37fd13
Compare
2a1a11d to
6eea4ce
Compare
6eea4ce to
476257b
Compare
edbc17e to
d50cb3a
Compare
There was a problem hiding this comment.
Pull request overview
Adds DBaaS PostgreSQL API v2 support by introducing a separate ionosctl dbaas postgres-v2 command tree backed by the github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3 SDK.
Changes:
- Vendored and wired the
dbaas/psql/v3SDK as the client for the newpostgres-v2commands (clusters, backups, versions, waiters). - Added new jsonpaths/table conversion mappings and new CLI flags/constants for the postgres-v2 surface.
- Updated generated docs to include the new
postgres-v2command group and adjusted the existing postgres--syncflag name to--sync-mode.
Reviewed changes
Copilot reviewed 42 out of 91 changed files in this pull request and generated 17 comments.
Show a summary per file
| File | Description |
|---|---|
| vendor/modules.txt | Adds vendored module entry for dbaas/psql/v3. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/model_postgres_version.go | Vendored SDK model for Postgres versions. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/model_postgres_version_read.go | Vendored SDK model for reading a Postgres version resource. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/model_postgres_version_read_list_all_of.go | Vendored SDK list wrapper for Postgres versions. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/model_postgres_user.go | Vendored SDK model for cluster user credentials. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/model_postgres_cluster_states.go | Vendored SDK enum for cluster states. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/model_postgres_cluster_replication_mode.go | Vendored SDK enum for replication modes. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/model_postgres_cluster_from_backup.go | Vendored SDK model for in-place restore / init from backup. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/model_postgres_cluster_connection.go | Vendored SDK model for cluster network connection. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/model_pagination.go | Vendored SDK pagination model. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/model_maintenance_window.go | Vendored SDK maintenance window model. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/model_links.go | Vendored SDK pagination links model. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/model_instance_configuration.go | Vendored SDK instance sizing model. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/model_error.go | Vendored SDK error model. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/model_error_messages.go | Vendored SDK error message model. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/model_day_of_the_week.go | Vendored SDK day-of-week enum. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/model_cluster_read.go | Vendored SDK cluster read model. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/model_cluster_read_list_all_of.go | Vendored SDK cluster list wrapper. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/model_cluster_metadata_all_of.go | Vendored SDK cluster metadata model. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/model_cluster_metadata_all_of_1.go | Vendored SDK cluster metadata extension model. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/model_cluster_ensure.go | Vendored SDK ensure/update wrapper model. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/model_cluster_create.go | Vendored SDK create wrapper model. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/model_backup_read.go | Vendored SDK backup read model. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/model_backup_read_list_all_of.go | Vendored SDK backup list wrapper. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/model_backup_location.go | Vendored SDK backup location model. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/model_backup_location_read.go | Vendored SDK backup location read model. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/model_backup_location_read_list_all_of.go | Vendored SDK backup location list wrapper. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/model_backup_ensure.go | Vendored SDK backup ensure wrapper. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/model_backup_create.go | Vendored SDK backup create wrapper. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/LICENSE | Vendored SDK license file. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/.travis.yml | Vendored SDK CI config file. |
| vendor/github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3/.gitignore | Vendored SDK gitignore file. |
| internal/printer/json2table/resource2table/dbaas-postgres.go | Adds table conversion helpers for Postgres version list/read using psql/v3. |
| internal/printer/json2table/jsonpaths/dbaas.go | Adds jsonpath mappings for postgres-v2 cluster/version/backup resources. |
| internal/core/doc/flag.go | Adjusts doc default rendering for “random” maintenance flags (stabilizes generated docs). |
| internal/constants/constants.go | Adds postgres-v2 constants (regional URL/locations, new flags) and renames sync flag to sync-mode. |
| internal/client/types.go | Adds PostgresClientV2 to the shared client struct. |
| internal/client/builder.go | Instantiates PostgresClientV2 using shared config. |
| go.sum | Adds checksums for dbaas/psql/v3. |
| go.mod | Adds dependency on dbaas/psql/v3. |
| docs/summary.md | Adds postgres-v2 section to the documentation summary. |
| docs/subcommands/Database-as-a-Service/postgres/v2/version/list.md | New generated docs for postgres-v2 version list. |
| docs/subcommands/Database-as-a-Service/postgres/v2/version/get.md | New generated docs for postgres-v2 version get. |
| docs/subcommands/Database-as-a-Service/postgres/v2/cluster/update.md | New generated docs for postgres-v2 cluster update. |
| docs/subcommands/Database-as-a-Service/postgres/v2/cluster/restore.md | New generated docs for postgres-v2 cluster restore. |
| docs/subcommands/Database-as-a-Service/postgres/v2/cluster/list.md | New generated docs for postgres-v2 cluster list. |
| docs/subcommands/Database-as-a-Service/postgres/v2/cluster/get.md | New generated docs for postgres-v2 cluster get. |
| docs/subcommands/Database-as-a-Service/postgres/v2/cluster/delete.md | New generated docs for postgres-v2 cluster delete. |
| docs/subcommands/Database-as-a-Service/postgres/v2/cluster/create.md | New generated docs for postgres-v2 cluster create. |
| docs/subcommands/Database-as-a-Service/postgres/v2/backup/location/list.md | New generated docs for postgres-v2 backup location list. |
| docs/subcommands/Database-as-a-Service/postgres/v2/backup/location/get.md | New generated docs for postgres-v2 backup location get. |
| docs/subcommands/Database-as-a-Service/postgres/v2/backup/list.md | New generated docs for postgres-v2 backup list. |
| docs/subcommands/Database-as-a-Service/postgres/v2/backup/get.md | New generated docs for postgres-v2 backup get. |
| docs/subcommands/Database-as-a-Service/postgres/cluster/create.md | Updates existing postgres docs to reflect --sync-mode flag name. |
| commands/dbaas/postgres-v2/waiter/state.go | Adds waiter interrogator to poll cluster state via v2 client. |
| commands/dbaas/postgres-v2/waiter/deletion.go | Adds waiter interrogator to detect deletion via v2 client. |
| commands/dbaas/postgres-v2/version/version.go | Adds postgres-v2 version command root. |
| commands/dbaas/postgres-v2/version/list.go | Implements postgres-v2 version listing. |
| commands/dbaas/postgres-v2/version/get.go | Implements postgres-v2 version retrieval + shell completion. |
| commands/dbaas/postgres-v2/root.go | Adds postgres-v2 root command and regional config override wiring. |
| commands/dbaas/postgres-v2/cluster/restore.go | Implements postgres-v2 cluster restore from backup with optional recovery time. |
| commands/dbaas/postgres-v2/cluster/list.go | Implements postgres-v2 cluster listing + filters. |
| commands/dbaas/postgres-v2/cluster/get.go | Implements postgres-v2 cluster get + optional wait-for-state. |
| commands/dbaas/postgres-v2/cluster/delete.go | Implements postgres-v2 cluster deletion (+ delete-all flow). |
| commands/dbaas/postgres-v2/cluster/cluster.go | Adds postgres-v2 cluster command root and shared list helper. |
| commands/dbaas/postgres-v2/backup/location/location.go | Adds postgres-v2 backup location subcommand root. |
| commands/dbaas/postgres-v2/backup/location/list.go | Implements postgres-v2 backup location list. |
| commands/dbaas/postgres-v2/backup/location/get.go | Implements postgres-v2 backup location get + shell completion. |
| commands/dbaas/postgres-v2/backup/list.go | Implements postgres-v2 backup list + optional cluster filter. |
| commands/dbaas/postgres-v2/backup/get.go | Implements postgres-v2 backup get + shell completion. |
| commands/dbaas/postgres-v2/backup/backup.go | Adds postgres-v2 backup command root and shared list helper. |
| commands/dbaas/dbaas.go | Registers postgres-v2 under the main dbaas command. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
d50cb3a to
4bca7fc
Compare
674354e to
9e9f95f
Compare
45204c9 to
f143954
Compare
f143954 to
e1a83a6
Compare
glimberea
requested changes
Apr 8, 2026
glimberea
left a comment
Contributor
There was a problem hiding this comment.
Please ensure to remove all uses of the old printer package functions. I've flagged a couple of them, but not all of them :))))
e828e4a to
72e7357
Compare
glimberea
approved these changes
Apr 9, 2026
a4dfb63 to
e0a1587
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Adds support for psql v2 API using a separate
postgres-v2command.Changes
ionosctl login --whitelistto support also sending versions