Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix BigQuery Transfer config #2415

Merged
merged 2 commits into from
Jul 29, 2021
Merged

Conversation

ameukam
Copy link
Member

@ameukam ameukam commented Jul 29, 2021

Followup of #2409.

Official documentation about the resource google_bigquery_data_transfer_config is incorrect on some points. I added and fixed some fields and parameters blocks.

Refs:

https://github.com/hashicorp/terraform-provider-google/blob/master/google/resource_bigquery_data_transfer_config.go
https://cloud.google.com/bigquery/docs/copying-datasets#setting_up_a_dataset_copy

ameukam added 2 commits July 29, 2021 07:29
Official documentation about the resource `google_bigquery_data_transfer_config`
is incorrect on some points. I added and fixed some fields and
parameters blocks.

Used source code of the resource and official GCP documentation:

https://github.com/hashicorp/terraform-provider-google/blob/master/google/resource_bigquery_data_transfer_config.go
https://cloud.google.com/bigquery/docs/copying-datasets#setting_up_a_dataset_copy

Signed-off-by: Arnaud Meukam <[email protected]>
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jul 29, 2021
@k8s-ci-robot k8s-ci-robot requested review from spiffxp and thockin July 29, 2021 05:49
@k8s-ci-robot k8s-ci-robot added area/terraform Terraform modules, testing them, writing more of them, code in infra/gcp/clusters/ wg/k8s-infra size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 29, 2021
@ameukam
Copy link
Member Author

ameukam commented Jul 29, 2021

Manually triggered the transfer and we got the same tables:

bq ls k8s-infra-public-pii:k8s_infra_artifacts_gcslogs
                          tableId                           Type    Labels   Time Partitioning   Clustered Fields  
 --------------------------------------------------------- ------- -------- ------------------- ------------------ 
  1_etl_test_distinct_ip_org                                TABLE                                                  
  2_etl_test_distinct_ip_and_int_org                        TABLE                                                  
  3_etl_test_potaroo_with_yaml_names_org                    TABLE                                                  
  4_etl_test_potaroo_with_yaml_names_in_one_column_org      TABLE                                                  
  5_etl_test_vendor_with_company_name_org                   TABLE                                                  
  6_etl_test_join_asn_and_distinct_ip_org                   TABLE                                                  
  7_asn_company_c_ip_lookup_anazon_only                     TABLE                                                  
  7_etl_test_join_usage_all_with_asn_and_company_name_org   TABLE                                                  
  asn_client_ip_lookup                                      TABLE                                                  
  total_logs_per_ip_counted9_june_2021                      TABLE                                                  
  usage_and_asn_data                                        TABLE                                                  
  usage_and_asn_data_bq                                     TABLE                                                  
  usage_and_asn_data_bq_distinct                            TABLE                                                  
  usage_and_asn_data_org                                    TABLE                                                  

@ameukam
Copy link
Member Author

ameukam commented Jul 29, 2021

job replication is successfully launched but failed to replicated:

2021-07-29 17:00:02.186 CEST
Error code 7 : Access Denied: Dataset k8s-infra-ii-sandbox:riaan_data_store: Permission bigquery.datasets.get denied on dataset k8s-infra-ii-sandbox:riaan_data_store (or it may not exist).

I'll open a followup PR for the permissions issue. This PR can be merged.

Copy link
Member

@spiffxp spiffxp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 29, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ameukam, spiffxp

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 3328c10 into kubernetes:main Jul 29, 2021
@k8s-ci-robot k8s-ci-robot added this to the v1.22 milestone Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/terraform Terraform modules, testing them, writing more of them, code in infra/gcp/clusters/ cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants