feat(gcp): Remove codegen#6384
Merged
kodiakhq[bot] merged 3 commits intocloudquery:mainfrom Jan 9, 2023
Merged
Conversation
This PR has the following changes to source plugin(s) tables:
|
7a8b7aa to
fe7041d
Compare
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
fe7041d to
3f3ea70
Compare
disq
approved these changes
Jan 9, 2023
3f3ea70 to
200be71
Compare
This was referenced Jan 9, 2023
kodiakhq bot
pushed a commit
that referenced
this pull request
Jan 9, 2023
🤖 I have created a release *beep* *boop* --- ## [6.0.0](plugins-source-gcp-v5.5.0...plugins-source-gcp-v6.0.0) (2023-01-09) ### ⚠ BREAKING CHANGES * **gcp-resources:** `gcp_iam_roles` column `etag` type changed from `String` to `IntArray` * **gcp-resources:** `gcp_iam_service_account_keys` column `public_key_data` type changed from `String` to `IntArray` and columns `valid_after_time, valid_before_time` type changed from `String` to `Timestamp` * **gcp-resources:** `gcp_iam_service_accounts` column `etag` type changed from `String` to `IntArray` ### Features * **gcp-resources:** Move `gcp_iam_deny_policies` to use `googleapis/google-cloud-go` ([58baafc](58baafc)) * **gcp-resources:** Move `gcp_iam_roles` to use `googleapis/google-cloud-go` ([58baafc](58baafc)) * **gcp-resources:** Move `gcp_iam_service_account_keys` to use `googleapis/google-cloud-go` ([58baafc](58baafc)) * **gcp-resources:** Move `gcp_iam_service_accounts` to use `googleapis/google-cloud-go` ([58baafc](58baafc)) * **gcp:** Remove codegen ([#6384](#6384)) ([b55b535](b55b535)) ### Bug Fixes * **deps:** Update module github.com/cloudquery/plugin-sdk to v1.21.0 ([#6382](#6382)) ([5baea40](5baea40)) * **deps:** Update module github.com/cloudquery/plugin-sdk to v1.22.0 ([#6516](#6516)) ([b7e4e73](b7e4e73)) * **deps:** Update module github.com/cloudquery/plugin-sdk to v1.23.0 ([#6522](#6522)) ([ce24f1d](ce24f1d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
erezrokah
added a commit
that referenced
this pull request
Jan 10, 2023
… `gcp_bigtableadmin_tables` (#6536) <!-- 🎉 Thank you for making CloudQuery awesome by submitting a PR 🎉 --> #### Summary `gcp_bigtableadmin_tables` had only `project_id` as PK which means we can only get 1 per project in `overwrite*` modes. Since the API doesn't provide an Id we need to use the parent `instance_name` and table name. The code to get the table name already exists: https://github.com/cloudquery/cloudquery/blob/60c0f145577881c4850eb82f546da47a1d57ed5c/plugins/source/gcp/resources/services/bigtableadmin/tables_fetch.go#L28 I added it accidentally in #6384. This is a breaking change as it relies on newly added columns for PKs <!-- Use the following steps to ensure your PR is ready to be reviewed - [ ] Read the [contribution guidelines](../blob/main/CONTRIBUTING.md) 🧑🎓 - [ ] Test locally on your own infrastructure - [ ] Run `go fmt` to format your code 🖊 - [ ] Lint your changes via `golangci-lint run` 🚨 (install golangci-lint [here](https://golangci-lint.run/usage/install/#local-installation)) - [ ] Update or add tests 🧪 - [ ] Ensure the status checks below are successful ✅ ---> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
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.
Summary
This PR removes code gen from GCP (it keeps only service discovery).
Blocked by cloudquery/plugin-sdk#578 and cloudquery/plugin-sdk#579.
While working on this PR I noticed a few cases where we configured the wrong PKs on tables. I'll fix those separately