-
Notifications
You must be signed in to change notification settings - Fork 400
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] Send only what is required in Update of databricks_credential
#4349
Conversation
Test Details: go/deco-tests/12481744402 |
This is a workaround for a problem in the API spec. Resolves #4335
If integration tests don't run automatically, an authorized user can run them manually by following the instructions below: Trigger: Inputs:
Checks will be approved automatically on success. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, great bias for action!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, great bias for action!
### New Features and Improvements * Add `fallback` to `databricks_external_location` ([#4372](#4372)). ### Bug Fixes * Send only what is required in Update of `databricks_credential` ([#4349](#4349)). ### Documentation * Add `MANAGE` privilege to the relevant UC resources ([#4371](#4371)). * Add a note about schema evolution and `databricks_sql_table` ([#4352](#4352)). * Add description of `clean_rooms_notebook_task` in `databricks_job` ([#4368](#4368)). * Add docs for cluster attributes for clusters assigned to groups ([#4359](#4359)). * Add note about use of `azurerm_databricks` for enhanced security settings ([#4393](#4393)). * Clarify views sharing in `databricks_share` ([#4378](#4378)). * Document job edit_mode ([#4354](#4354)). ### Internal Changes * Auto generated customizable schemas ([#4356](#4356)). * Disable `terraform fmt` in exporter to workaround build issues ([#4394](#4394)). * Fixed redundant optional owners in share resource and bumped Go SDK ([#4396](#4396)). * Load auto-generated resources and data sources ([#4367](#4367)). * Migrate workflows that need write access to use hosted runners ([#4377](#4377)). * Remove TF annotations on TFSDK models ([#4383](#4383)). * Restart Cluster before Library Installation ([#4384](#4384)). ### Dependency Updates * Bump github.com/zclconf/go-cty from 1.15.1 to 1.16.0 ([#4374](#4374)). * Bump github.com/zclconf/go-cty from 1.16.0 to 1.16.1 ([#4397](#4397)). ### Exporter * Add exporting of `for_each_task` in jobs ([#4347](#4347)). * Add references for missing permissions/grants types ([#4390](#4390)). * Support for group assigned clusters ([#4361](#4361)). * Use Go SDK to list clusters ([#4385](#4385)). * Use `Workspace.Export` from Go SDK for notebooks/files ([#4391](#4391)).
### New Features and Improvements * Add `fallback` to `databricks_external_location` ([#4372](#4372)). ### Bug Fixes * Send only what is required in Update of `databricks_credential` ([#4349](#4349)). ### Documentation * Add `MANAGE` privilege to the relevant UC resources ([#4371](#4371)). * Add a note about schema evolution and `databricks_sql_table` ([#4352](#4352)). * Add description of `clean_rooms_notebook_task` in `databricks_job` ([#4368](#4368)). * Add docs for cluster attributes for clusters assigned to groups ([#4359](#4359)). * Add note about use of `azurerm_databricks` for enhanced security settings ([#4393](#4393)). * Clarify views sharing in `databricks_share` ([#4378](#4378)). * Document job edit_mode ([#4354](#4354)). ### Internal Changes * Auto generated customizable schemas ([#4356](#4356)). * Disable `terraform fmt` in exporter to workaround build issues ([#4394](#4394)). * Fixed redundant optional owners in share resource and bumped Go SDK ([#4396](#4396)). * Load auto-generated resources and data sources ([#4367](#4367)). * Migrate workflows that need write access to use hosted runners ([#4377](#4377)). * Remove TF annotations on TFSDK models ([#4383](#4383)). * Restart Cluster before Library Installation ([#4384](#4384)). ### Dependency Updates * Bump github.com/zclconf/go-cty from 1.15.1 to 1.16.0 ([#4374](#4374)). * Bump github.com/zclconf/go-cty from 1.16.0 to 1.16.1 ([#4397](#4397)). ### Exporter * Add exporting of `for_each_task` in jobs ([#4347](#4347)). * Add references for missing permissions/grants types ([#4390](#4390)). * Support for group assigned clusters ([#4361](#4361)). * Use Go SDK to list clusters ([#4385](#4385)). * Use `Workspace.Export` from Go SDK for notebooks/files ([#4391](#4391)).
Changes
This is a workaround for a problem in the API spec - right now, the Update operation tries to send the full struct, although the API accepts only one attribute of that struct. For GCP we should omit the struct completely...
The problem doesn't exist for
storage_credential
on AWS as it uses the correct structure for the Update request, but problem exists for GCP.Resolves #4335
Tests
make test
run locallydocs/
folderinternal/acceptance