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 gcp_attributes.local_ssd_count to databricks_cluster resource #2422

Merged
merged 1 commit into from
Aug 7, 2023

Conversation

alexott
Copy link
Contributor

@alexott alexott commented Jun 23, 2023

Changes

New setting allows to specify number of local SSD disks to be attached to each node

Unfortunately we need to wait until Clusters GET is fixed because right now it doesn't return that attribute 🤦

Tests

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

@alexott alexott requested review from a team June 23, 2023 08:16
@codecov-commenter
Copy link

codecov-commenter commented Jun 23, 2023

Codecov Report

Merging #2422 (58afe32) into master (2bd03e2) will increase coverage by 0.00%.
The diff coverage is 83.33%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2422   +/-   ##
=======================================
  Coverage   88.27%   88.27%           
=======================================
  Files         142      142           
  Lines       11797    11798    +1     
=======================================
+ Hits        10414    10415    +1     
  Misses        923      923           
  Partials      460      460           
Impacted Files Coverage Δ
clusters/clusters_api.go 85.71% <ø> (ø)
exporter/context.go 83.78% <ø> (ø)
exporter/importables.go 89.19% <80.00%> (ø)
clusters/resource_cluster.go 85.16% <100.00%> (+0.06%) ⬆️

@alexott alexott marked this pull request as ready for review July 11, 2023 06:45
Copy link
Contributor

@mgyucht mgyucht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's split into two PRs. I know it's a bit more overhead, but deprecations should be called ou explicitly in the changelog.

@@ -59,6 +59,8 @@ func resourceClusterSchema() map[string]*schema.Schema {
return common.StructToSchema(Cluster{}, func(s map[string]*schema.Schema) map[string]*schema.Schema {
s["spark_conf"].DiffSuppressFunc = SparkConfDiffSuppressFunc
common.MustSchemaPath(s, "aws_attributes", "zone_id").DiffSuppressFunc = ZoneDiffSuppress
common.MustSchemaPath(s, "gcp_attributes", "use_preemptible_executors").Deprecated = "Please use 'availability' instead."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we separate this into a separate commit? Otherwise it will not appear on the changelog.

New setting allows to specify number of local SSD disks to be attached to each node
@alexott alexott force-pushed the gcp-cluster-local-ssds branch from 00e3279 to 1993b34 Compare August 2, 2023 14:36
@alexott alexott requested review from mgyucht and a team August 2, 2023 14:37
@mgyucht mgyucht added this pull request to the merge queue Aug 7, 2023
Merged via the queue into master with commit f39d66b Aug 7, 2023
@mgyucht mgyucht mentioned this pull request Aug 8, 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.

3 participants