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

Added state upgrader to remove max_clusters_per_user and ebs volume attributes set to zero #3551

Merged
merged 3 commits into from
May 8, 2024

Conversation

andrewnester
Copy link
Contributor

@andrewnester andrewnester commented May 7, 2024

Changes

Added state upgrader to remove max_clusters_per_user and ebs volume attributes set to zero

Fixes #3545 #3553

Tests

Manually (deploying policy with 1.41 version, upgrading to the fix and applying the changes. Changes succeed and schema updated).

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

@hectorcast-db
Copy link
Contributor

The change looks good. However, do we understand why this issue started happening now? I don't see recent changes on these resources which could cause this.

@alexott
Copy link
Contributor

alexott commented May 8, 2024

@hectorcast-db #3385 could cause it with a combination with having an object with defaults in the state...

@andrewnester andrewnester changed the title Added state upgrader to remove max_clusters_per_user set to zero Added state upgrader to remove max_clusters_per_user and ebs volume attributes set to zero May 8, 2024
@andrewnester andrewnester added this pull request to the merge queue May 8, 2024
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 74.35897% with 20 lines in your changes are missing coverage. Please review.

Project coverage is 82.61%. Comparing base (a30518e) to head (9eb8e4a).
Report is 3 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3551      +/-   ##
==========================================
- Coverage   82.66%   82.61%   -0.05%     
==========================================
  Files         184      184              
  Lines       18857    18919      +62     
==========================================
+ Hits        15588    15630      +42     
- Misses       2351     2371      +20     
  Partials      918      918              
Files Coverage Δ
policies/resource_cluster_policy.go 91.66% <100.00%> (+0.75%) ⬆️
policies/data_cluster_policy.go 95.23% <90.47%> (-4.77%) ⬇️
clusters/resource_cluster.go 81.01% <33.33%> (-3.72%) ⬇️

... and 2 files with indirect coverage changes

Merged via the queue into main with commit a162a2f May 8, 2024
5 checks passed
@andrewnester andrewnester deleted the state-upgrade-optional-fields branch May 8, 2024 10:31
tanmay-db added a commit that referenced this pull request May 13, 2024
### New Features and Improvements
* fix ([#3542](#3542)).
* Update data_aws_crossaccount_policy to format resource string with account and region ([#3544](#3544)).
* Robust retries for workspace get-status ([#3550](#3550)).
* Fix error message typo in mounts.go ([#3552](#3552)).
* State the options for run_if ([#3548](#3548)).
* Exporter: don't emit all UC objects when handling dependencies ([#3556](#3556)).
* Added state upgrader to remove `max_clusters_per_user` and ebs volume attributes set to zero ([#3551](#3551)).
* Exporter: track removed objects during the `Emit` phase ([#3554](#3554)).
* Jobs GoSDK schema migration ([#3532](#3532)).
* Exporter: optimize generation of `databricks_group_member` resource ([#3559](#3559)).

### Documentation Changes

### Exporter

### Internal Changes
@tanmay-db tanmay-db mentioned this pull request May 13, 2024
github-merge-queue bot pushed a commit that referenced this pull request May 14, 2024
* Release v1.43.0

### New Features and Improvements
* fix ([#3542](#3542)).
* Update data_aws_crossaccount_policy to format resource string with account and region ([#3544](#3544)).
* Robust retries for workspace get-status ([#3550](#3550)).
* Fix error message typo in mounts.go ([#3552](#3552)).
* State the options for run_if ([#3548](#3548)).
* Exporter: don't emit all UC objects when handling dependencies ([#3556](#3556)).
* Added state upgrader to remove `max_clusters_per_user` and ebs volume attributes set to zero ([#3551](#3551)).
* Exporter: track removed objects during the `Emit` phase ([#3554](#3554)).
* Jobs GoSDK schema migration ([#3532](#3532)).
* Exporter: optimize generation of `databricks_group_member` resource ([#3559](#3559)).

### Documentation Changes

### Exporter

### Internal Changes

* -

* -

* -
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.

[ISSUE] Issue with databricks_cluster_policy with v1.42
4 participants