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

Allow to change custom_tags in databricks_instance_pool resource without recreating a pool #2400

Merged
merged 1 commit into from
Jun 19, 2023

Conversation

alexott
Copy link
Contributor

@alexott alexott commented Jun 14, 2023

Changes

REST API supports editing of tags for quite a some time, but the field was still marked as force_new leading to recreation of the pool & affecting dependent resources.

Please note that due API bug it's impossible to remove tags completely after they set, you can only change them.

Tests

  • make test run locally
  • tested manually on AWS & Azure
  • 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 June 14, 2023 10:05
…without recreating a pool

Please note that due API bug it's impossible to remove tags completely after they set, you
can only change them.
@alexott alexott force-pushed the instance-pools-tags-edit branch from 5e7324f to e90fbe1 Compare June 14, 2023 10:15
@codecov-commenter
Copy link

Codecov Report

Merging #2400 (e90fbe1) into master (512151d) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2400   +/-   ##
=======================================
  Coverage   88.48%   88.48%           
=======================================
  Files         141      141           
  Lines       11642    11642           
=======================================
  Hits        10302    10302           
  Misses        890      890           
  Partials      450      450           
Impacted Files Coverage Δ
pools/resource_instance_pool.go 100.00% <ø> (ø)

@mgyucht
Copy link
Contributor

mgyucht commented Jun 14, 2023

Does this work in all clouds? Could you do a manual test for this? I know there are some restrictions around changing tags on VMs e.g. in Azure, this was not supported or worked poorly in the past.

@alexott
Copy link
Contributor Author

alexott commented Jun 14, 2023

I tested it on AWS & Azure, worked on both

@hoaihuongbk
Copy link
Contributor

+1 for this merge. This is super useful for us (Grab) to update the pool tags. Thank @alexott for the pr.

@nfx nfx merged commit d548aed into master Jun 19, 2023
@nfx nfx deleted the instance-pools-tags-edit branch June 19, 2023 14:21
@mgyucht mgyucht mentioned this pull request Jun 29, 2023
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.

5 participants