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

[Exporter] Correctly handle DB-managed UC objects #4323

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

alexott
Copy link
Contributor

@alexott alexott commented Dec 14, 2024

Changes

Databricks has started to introduce UC objects that are created and managed by Databricks, i.e., storage credentials and external locations, so we can't create resources to manage them.

This PR converts such managed UC objects into data sources so we can attach permissions to them and handle references. The change of ownership is still not implemented - filed #4321 to handle it.

Other changes include:

  • refactoring of creation of new resource data objects
  • fixing a problem with the codegen of data sources, so we don't need a dedicated Body implementation.

Tests

  • make test run locally
  • relevant change in docs/ folder
  • covered with integration tests in internal/acceptance
  • using Go SDK
  • using TF Plugin Framework

@alexott alexott requested review from a team as code owners December 14, 2024 09:48
@alexott alexott requested review from mgyucht and tanmay-db and removed request for a team December 14, 2024 09:48
Databricks has started to introduce UC objects that are created and managed by Databricks,
i.e., storage credentials and external locations, so we can't create resources to manage
them.

This PR converts such managed UC objects into data sources, so we can attach permissions
to them, and handle references.

Other changes include:

- refactoring of creation of new resource data objects
- fixing a problem with codegen of data sources, so we don't need a dedicated `Body`
  implementation.
@alexott alexott force-pushed the exporter/handle-db-managed-objects branch from 1a6cbea to d213cbb Compare December 16, 2024 18:40
Copy link

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/terraform

Inputs:

  • PR number: 4323
  • Commit SHA: d213cbb8128b818513ff5baaddf3b02f2025dc7f

Checks will be approved automatically on success.

@alexott alexott enabled auto-merge December 16, 2024 18:45
@eng-dev-ecosystem-bot
Copy link
Collaborator

Test Details: go/deco-tests/12359141713

@alexott alexott added this pull request to the merge queue Dec 17, 2024
Merged via the queue into main with commit 2b97994 Dec 17, 2024
12 checks passed
@alexott alexott deleted the exporter/handle-db-managed-objects branch December 17, 2024 15:35
hectorcast-db added a commit that referenced this pull request Dec 18, 2024
### New Features and Improvements

 * Allow to use GCP SA in `databricks_credential` (storage only) ([#4302](#4302)).

### Bug Fixes

 * Bump Golang x/crypto to 0.31 ([#4319](#4319)).

### Internal Changes

 * Generate models with correctly computed annotations ([#4316](#4316)).
 * Update Go SDK to 0.54.0 ([#4328](#4328)).

### Dependency Updates

 * Bump github.com/hashicorp/terraform-plugin-framework-validators from 0.15.0 to 0.16.0 ([#4320](#4320)).

### Exporter

 * Correctly handle DB-managed UC objects ([#4323](#4323)).
 * Emit WSFS/UC files from `parameters` in the jobs ([#4318](#4318)).
 * Improve support of `databricks_model_serving` ([#4324](#4324)).
 * add support for `databricks_credential` ([#4292](#4292)).
 * export `databricks_repo` for Git Folders outside of `/Repos` ([#4308](#4308)).
hectorcast-db added a commit that referenced this pull request Dec 18, 2024
 * Allow to use GCP SA in `databricks_credential` (storage only) ([#4302](#4302)).

 * Bump Golang x/crypto to 0.31 ([#4319](#4319)).

 * Generate models with correctly computed annotations ([#4316](#4316)).
 * Update Go SDK to 0.54.0 ([#4328](#4328)).

 * Bump github.com/hashicorp/terraform-plugin-framework-validators from 0.15.0 to 0.16.0 ([#4320](#4320)).

 * Correctly handle DB-managed UC objects ([#4323](#4323)).
 * Emit WSFS/UC files from `parameters` in the jobs ([#4318](#4318)).
 * Improve support of `databricks_model_serving` ([#4324](#4324)).
 * add support for `databricks_credential` ([#4292](#4292)).
 * export `databricks_repo` for Git Folders outside of `/Repos` ([#4308](#4308)).
github-merge-queue bot pushed a commit that referenced this pull request Dec 18, 2024
### New Features and Improvements

* Allow to use GCP SA in `databricks_credential` (storage only)
([#4302](#4302)).
 * Support for databricks_credential in databricks_workspace_binding


### Bug Fixes

* Bump Golang x/crypto to 0.31
([#4319](#4319)).


### Internal Changes

* Generate models with correctly computed annotations
([#4316](#4316)).
* Update Go SDK to 0.54.0
([#4328](#4328)).


### Dependency Updates

* Bump github.com/hashicorp/terraform-plugin-framework-validators from
0.15.0 to 0.16.0
([#4320](#4320)).


### Exporter

* Correctly handle DB-managed UC objects
([#4323](#4323)).
* Emit WSFS/UC files from `parameters` in the jobs
([#4318](#4318)).
* Improve support of `databricks_model_serving`
([#4324](#4324)).
* add support for `databricks_credential`
([#4292](#4292)).
* export `databricks_repo` for Git Folders outside of `/Repos`
([#4308](#4308)).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants