From e63452039fb9076131381729863e10b6a9d1d1e8 Mon Sep 17 00:00:00 2001 From: Mahmoud Ismail Date: Mon, 8 Apr 2024 10:31:31 +0200 Subject: [PATCH] [CLOUD-722] Set default version to 3.7.1 --- CHANGELOG.md | 1 + docs/resources/cluster.md | 2 +- examples/complete/gcp/gke/standard/main.tf | 2 +- hopsworksai/resource_cluster.go | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e4281a2..1600100 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ NOTES: BREAKING CHANGES: ENHANCEMENTS: +* resource/hopsworksai_cluster: Set Default `version` to 3.7.1 FEATURES: diff --git a/docs/resources/cluster.md b/docs/resources/cluster.md index 26532f3..485fb21 100644 --- a/docs/resources/cluster.md +++ b/docs/resources/cluster.md @@ -125,7 +125,7 @@ resource "hopsworksai_cluster" "cluster" { - `tags` (Map of String) The list of custom tags to be attached to the cluster. - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) - `update_state` (String) The action you can use to start or stop the cluster. It has to be one of these values [none, start, stop]. Defaults to `none`. -- `version` (String) The version of the cluster. For existing clusters, you can change this attribute to upgrade to a newer version of Hopsworks. If the upgrade process ended up in an error state, you can always rollback to the old version by resetting this attribute to the old version. Defaults to `3.7.0`. +- `version` (String) The version of the cluster. For existing clusters, you can change this attribute to upgrade to a newer version of Hopsworks. If the upgrade process ended up in an error state, you can always rollback to the old version by resetting this attribute to the old version. Defaults to `3.7.1`. - `workers` (Block Set) The configurations of worker nodes. You can add as many as you want of this block to create workers with different configurations. (see [below for nested schema](#nestedblock--workers)) ### Read-Only diff --git a/examples/complete/gcp/gke/standard/main.tf b/examples/complete/gcp/gke/standard/main.tf index 92c43ae..46407c2 100644 --- a/examples/complete/gcp/gke/standard/main.tf +++ b/examples/complete/gcp/gke/standard/main.tf @@ -172,7 +172,7 @@ data "hopsworksai_instance_type" "worker" { } resource "hopsworksai_cluster" "cluster" { - name = "tf-cluster" + name = "tf-cluster" head { instance_type = data.hopsworksai_instance_type.head.id diff --git a/hopsworksai/resource_cluster.go b/hopsworksai/resource_cluster.go index 37ee8d3..1110cf0 100644 --- a/hopsworksai/resource_cluster.go +++ b/hopsworksai/resource_cluster.go @@ -116,7 +116,7 @@ func clusterSchema() map[string]*schema.Schema { Description: "The version of the cluster. For existing clusters, you can change this attribute to upgrade to a newer version of Hopsworks. If the upgrade process ended up in an error state, you can always rollback to the old version by resetting this attribute to the old version.", Type: schema.TypeString, Optional: true, - Default: "3.7.0", + Default: "3.7.1", }, "head": { Description: "The configurations of the head node of the cluster.",