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: don't emit databricks_permissions for /Shared directory #2288

Merged
merged 1 commit into from
May 16, 2023

Conversation

alexott
Copy link
Contributor

@alexott alexott commented May 10, 2023

Changes

Current Permissions API doesn't allow change of the permissions for the /Shared folder, so when we generate a permission resource for it, we get Terraform error.

fixes #2269

Tests

  • make test run locally
  • tested manually
  • relevant change in docs/ folder
  • covered with integration tests in internal/acceptance
  • relevant acceptance tests are passing
  • using Go SDK

@alexott alexott requested review from a team May 10, 2023 15:22
@codecov-commenter
Copy link

Codecov Report

Merging #2288 (395d688) into master (28cbf48) will decrease coverage by 0.06%.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2288      +/-   ##
==========================================
- Coverage   88.72%   88.67%   -0.06%     
==========================================
  Files         140      140              
  Lines       11551    11551              
==========================================
- Hits        10249    10243       -6     
- Misses        869      874       +5     
- Partials      433      434       +1     
Impacted Files Coverage Δ
exporter/importables.go 89.20% <0.00%> (-0.58%) ⬇️

exporter/importables.go Outdated Show resolved Hide resolved
exporter/importables.go Show resolved Hide resolved
Current Permissions API doesn't allow change of the permissions for the `/Shared` folder,
so when we generate a permission resource for it, we get Terraform error.

fixes #2269
@alexott alexott force-pushed the exporter-fix-notebooks-permissions branch from 395d688 to c003e84 Compare May 15, 2023 10:35
@nfx nfx merged commit b5e3cfe into master May 16, 2023
@nfx nfx deleted the exporter-fix-notebooks-permissions branch May 16, 2023 14:36
nfx added a commit that referenced this pull request May 16, 2023
# Version changelog

## 1.16.1

 * Added [databricks_service_principal_secret](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/service_principal_secret) documentation ([#2296](#2296)).
 * Documentation about Unity Catalog integration in [databricks_pipeline](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/pipeline) ([#2289](#2289)).
 * Exporter: don't emit [databricks_permissions](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/permissions) for `/Shared` directory ([#2288](#2288)).
 * Fix dependency when exporting [databricks_service_principal_role](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/service_principal_role) ([#2285](#2285)).
 * Removed reference to deprecated [databricks_group_instance_profile](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/group_instance_profile) from [databricks_group_role](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/group_role) docs ([#2290](#2290)).
 * Updated documentation for [databricks_secret_scope](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/secret_scope) resource ([#2297](#2297)).
@nfx nfx mentioned this pull request May 16, 2023
nfx added a commit that referenced this pull request May 16, 2023
# Version changelog

## 1.16.1

 * Added [databricks_service_principal_secret](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/service_principal_secret) documentation ([#2296](#2296)).
 * Documentation about Unity Catalog integration in [databricks_pipeline](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/pipeline) ([#2289](#2289)).
 * Exporter: don't emit [databricks_permissions](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/permissions) for `/Shared` directory ([#2288](#2288)).
 * Fix dependency when exporting [databricks_service_principal_role](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/service_principal_role) ([#2285](#2285)).
 * Removed reference to deprecated [databricks_group_instance_profile](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/group_instance_profile) from [databricks_group_role](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/group_role) docs ([#2290](#2290)).
 * Updated documentation for [databricks_secret_scope](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/secret_scope) resource ([#2297](#2297)).
@alexott alexott added the exporter TF configuration generator label Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exporter TF configuration generator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ISSUE] Experimental exporter generates permissions for /shared in the workspace
4 participants