diff --git a/docs/data-sources/pack.md b/docs/data-sources/pack.md index ea50ef81..2fc2c9b3 100644 --- a/docs/data-sources/pack.md +++ b/docs/data-sources/pack.md @@ -11,7 +11,7 @@ description: |- -~> Starting with version 0.21.0 the attribute `registry_uid` is required. +~> Starting with Palette version 4.5 (and the corresponding provider release), the `registry_uid` attribute will become required. The existing `filters` attribute will be deprecated, and a new `pack_filters` attribute will be introduced for advanced search functionality. ## Example Usage @@ -65,4 +65,4 @@ data "spectrocloud_pack" "cni" { ### Read-Only -- `values` (String) The YAML values of the pack returned as string. \ No newline at end of file +- `values` (String) The YAML values of the pack returned as string. diff --git a/docs/resources/cluster_aks.md b/docs/resources/cluster_aks.md index 1b7ce077..6c281a41 100644 --- a/docs/resources/cluster_aks.md +++ b/docs/resources/cluster_aks.md @@ -228,7 +228,7 @@ Optional: - `cluster_uids` (Set of String) The list of cluster UIDs to include in the backup. If `include_all_clusters` is set to `true`, then all clusters will be included. - `include_all_clusters` (Boolean) Whether to include all clusters in the backup. If set to false, only the clusters specified in `cluster_uids` will be included. -- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. +- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. (Note: Starting with Palette version 4.6, the `include_cluster_resources` attribute will be changed to a string type, supporting the values `always`, `never`, and `auto`.) - `include_disks` (Boolean) Whether to include the disks in the backup. If set to false, only the cluster configuration will be backed up. - `namespaces` (Set of String) The list of Kubernetes namespaces to include in the backup. If not specified, all namespaces will be included. diff --git a/docs/resources/cluster_aws.md b/docs/resources/cluster_aws.md index d92e4175..3c022ea9 100644 --- a/docs/resources/cluster_aws.md +++ b/docs/resources/cluster_aws.md @@ -255,7 +255,7 @@ Optional: - `cluster_uids` (Set of String) The list of cluster UIDs to include in the backup. If `include_all_clusters` is set to `true`, then all clusters will be included. - `include_all_clusters` (Boolean) Whether to include all clusters in the backup. If set to false, only the clusters specified in `cluster_uids` will be included. -- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. +- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. (Note: Starting with Palette version 4.6, the `include_cluster_resources` attribute will be changed to a string type, supporting the values `always`, `never`, and `auto`.) - `include_disks` (Boolean) Whether to include the disks in the backup. If set to false, only the cluster configuration will be backed up. - `namespaces` (Set of String) The list of Kubernetes namespaces to include in the backup. If not specified, all namespaces will be included. diff --git a/docs/resources/cluster_azure.md b/docs/resources/cluster_azure.md index d6d2ab5f..d2f5c97e 100644 --- a/docs/resources/cluster_azure.md +++ b/docs/resources/cluster_azure.md @@ -237,7 +237,7 @@ Optional: - `cluster_uids` (Set of String) The list of cluster UIDs to include in the backup. If `include_all_clusters` is set to `true`, then all clusters will be included. - `include_all_clusters` (Boolean) Whether to include all clusters in the backup. If set to false, only the clusters specified in `cluster_uids` will be included. -- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. +- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. (Note: Starting with Palette version 4.6, the `include_cluster_resources` attribute will be changed to a string type, supporting the values `always`, `never`, and `auto`.) - `include_disks` (Boolean) Whether to include the disks in the backup. If set to false, only the cluster configuration will be backed up. - `namespaces` (Set of String) The list of Kubernetes namespaces to include in the backup. If not specified, all namespaces will be included. diff --git a/docs/resources/cluster_custom_cloud.md b/docs/resources/cluster_custom_cloud.md index 07e2a244..d42b7275 100644 --- a/docs/resources/cluster_custom_cloud.md +++ b/docs/resources/cluster_custom_cloud.md @@ -199,7 +199,7 @@ Optional: - `cluster_uids` (Set of String) The list of cluster UIDs to include in the backup. If `include_all_clusters` is set to `true`, then all clusters will be included. - `include_all_clusters` (Boolean) Whether to include all clusters in the backup. If set to false, only the clusters specified in `cluster_uids` will be included. -- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. +- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. (Note: Starting with Palette version 4.6, the `include_cluster_resources` attribute will be changed to a string type, supporting the values `always`, `never`, and `auto`.) - `include_disks` (Boolean) Whether to include the disks in the backup. If set to false, only the cluster configuration will be backed up. - `namespaces` (Set of String) The list of Kubernetes namespaces to include in the backup. If not specified, all namespaces will be included. diff --git a/docs/resources/cluster_edge_native.md b/docs/resources/cluster_edge_native.md index d0198a3d..d6758f1d 100644 --- a/docs/resources/cluster_edge_native.md +++ b/docs/resources/cluster_edge_native.md @@ -191,7 +191,7 @@ Optional: - `cluster_uids` (Set of String) The list of cluster UIDs to include in the backup. If `include_all_clusters` is set to `true`, then all clusters will be included. - `include_all_clusters` (Boolean) Whether to include all clusters in the backup. If set to false, only the clusters specified in `cluster_uids` will be included. -- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. +- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. (Note: Starting with Palette version 4.6, the `include_cluster_resources` attribute will be changed to a string type, supporting the values `always`, `never`, and `auto`.) - `include_disks` (Boolean) Whether to include the disks in the backup. If set to false, only the cluster configuration will be backed up. - `namespaces` (Set of String) The list of Kubernetes namespaces to include in the backup. If not specified, all namespaces will be included. diff --git a/docs/resources/cluster_edge_vsphere.md b/docs/resources/cluster_edge_vsphere.md index e0fcb855..8508a137 100644 --- a/docs/resources/cluster_edge_vsphere.md +++ b/docs/resources/cluster_edge_vsphere.md @@ -156,7 +156,7 @@ Optional: - `cluster_uids` (Set of String) The list of cluster UIDs to include in the backup. If `include_all_clusters` is set to `true`, then all clusters will be included. - `include_all_clusters` (Boolean) Whether to include all clusters in the backup. If set to false, only the clusters specified in `cluster_uids` will be included. -- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. +- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. (Note: Starting with Palette version 4.6, the `include_cluster_resources` attribute will be changed to a string type, supporting the values `always`, `never`, and `auto`.) - `include_disks` (Boolean) Whether to include the disks in the backup. If set to false, only the cluster configuration will be backed up. - `namespaces` (Set of String) The list of Kubernetes namespaces to include in the backup. If not specified, all namespaces will be included. diff --git a/docs/resources/cluster_eks.md b/docs/resources/cluster_eks.md index 9bcca7b3..565b0d5f 100644 --- a/docs/resources/cluster_eks.md +++ b/docs/resources/cluster_eks.md @@ -219,7 +219,7 @@ Optional: - `cluster_uids` (Set of String) The list of cluster UIDs to include in the backup. If `include_all_clusters` is set to `true`, then all clusters will be included. - `include_all_clusters` (Boolean) Whether to include all clusters in the backup. If set to false, only the clusters specified in `cluster_uids` will be included. -- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. +- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. (Note: Starting with Palette version 4.6, the `include_cluster_resources` attribute will be changed to a string type, supporting the values `always`, `never`, and `auto`.) - `include_disks` (Boolean) Whether to include the disks in the backup. If set to false, only the cluster configuration will be backed up. - `namespaces` (Set of String) The list of Kubernetes namespaces to include in the backup. If not specified, all namespaces will be included. diff --git a/docs/resources/cluster_gcp.md b/docs/resources/cluster_gcp.md index e0008ef6..1bc5d4da 100644 --- a/docs/resources/cluster_gcp.md +++ b/docs/resources/cluster_gcp.md @@ -189,7 +189,7 @@ Optional: - `cluster_uids` (Set of String) The list of cluster UIDs to include in the backup. If `include_all_clusters` is set to `true`, then all clusters will be included. - `include_all_clusters` (Boolean) Whether to include all clusters in the backup. If set to false, only the clusters specified in `cluster_uids` will be included. -- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. +- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. (Note: Starting with Palette version 4.6, the `include_cluster_resources` attribute will be changed to a string type, supporting the values `always`, `never`, and `auto`.) - `include_disks` (Boolean) Whether to include the disks in the backup. If set to false, only the cluster configuration will be backed up. - `namespaces` (Set of String) The list of Kubernetes namespaces to include in the backup. If not specified, all namespaces will be included. diff --git a/docs/resources/cluster_gke.md b/docs/resources/cluster_gke.md index 7afbc215..e8caa13a 100644 --- a/docs/resources/cluster_gke.md +++ b/docs/resources/cluster_gke.md @@ -170,7 +170,7 @@ Optional: - `cluster_uids` (Set of String) The list of cluster UIDs to include in the backup. If `include_all_clusters` is set to `true`, then all clusters will be included. - `include_all_clusters` (Boolean) Whether to include all clusters in the backup. If set to false, only the clusters specified in `cluster_uids` will be included. -- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. +- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. (Note: Starting with Palette version 4.6, the `include_cluster_resources` attribute will be changed to a string type, supporting the values `always`, `never`, and `auto`.) - `include_disks` (Boolean) Whether to include the disks in the backup. If set to false, only the cluster configuration will be backed up. - `namespaces` (Set of String) The list of Kubernetes namespaces to include in the backup. If not specified, all namespaces will be included. diff --git a/docs/resources/cluster_maas.md b/docs/resources/cluster_maas.md index d0ee0b06..7350d112 100644 --- a/docs/resources/cluster_maas.md +++ b/docs/resources/cluster_maas.md @@ -236,7 +236,7 @@ Optional: - `cluster_uids` (Set of String) The list of cluster UIDs to include in the backup. If `include_all_clusters` is set to `true`, then all clusters will be included. - `include_all_clusters` (Boolean) Whether to include all clusters in the backup. If set to false, only the clusters specified in `cluster_uids` will be included. -- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. +- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. (Note: Starting with Palette version 4.6, the `include_cluster_resources` attribute will be changed to a string type, supporting the values `always`, `never`, and `auto`.) - `include_disks` (Boolean) Whether to include the disks in the backup. If set to false, only the cluster configuration will be backed up. - `namespaces` (Set of String) The list of Kubernetes namespaces to include in the backup. If not specified, all namespaces will be included. diff --git a/docs/resources/cluster_openstack.md b/docs/resources/cluster_openstack.md index 82eac320..c62cd4bd 100644 --- a/docs/resources/cluster_openstack.md +++ b/docs/resources/cluster_openstack.md @@ -194,7 +194,7 @@ Optional: - `cluster_uids` (Set of String) The list of cluster UIDs to include in the backup. If `include_all_clusters` is set to `true`, then all clusters will be included. - `include_all_clusters` (Boolean) Whether to include all clusters in the backup. If set to false, only the clusters specified in `cluster_uids` will be included. -- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. +- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. (Note: Starting with Palette version 4.6, the `include_cluster_resources` attribute will be changed to a string type, supporting the values `always`, `never`, and `auto`.) - `include_disks` (Boolean) Whether to include the disks in the backup. If set to false, only the cluster configuration will be backed up. - `namespaces` (Set of String) The list of Kubernetes namespaces to include in the backup. If not specified, all namespaces will be included. diff --git a/docs/resources/cluster_tke.md b/docs/resources/cluster_tke.md index a7e5b54c..609abce1 100644 --- a/docs/resources/cluster_tke.md +++ b/docs/resources/cluster_tke.md @@ -126,7 +126,7 @@ Optional: - `cluster_uids` (Set of String) The list of cluster UIDs to include in the backup. If `include_all_clusters` is set to `true`, then all clusters will be included. - `include_all_clusters` (Boolean) Whether to include all clusters in the backup. If set to false, only the clusters specified in `cluster_uids` will be included. -- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. +- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. (Note: Starting with Palette version 4.6, the `include_cluster_resources` attribute will be changed to a string type, supporting the values `always`, `never`, and `auto`.) - `include_disks` (Boolean) Whether to include the disks in the backup. If set to false, only the cluster configuration will be backed up. - `namespaces` (Set of String) The list of Kubernetes namespaces to include in the backup. If not specified, all namespaces will be included. diff --git a/docs/resources/cluster_vsphere.md b/docs/resources/cluster_vsphere.md index 75688a20..1dd92466 100644 --- a/docs/resources/cluster_vsphere.md +++ b/docs/resources/cluster_vsphere.md @@ -159,7 +159,7 @@ Optional: - `cluster_uids` (Set of String) The list of cluster UIDs to include in the backup. If `include_all_clusters` is set to `true`, then all clusters will be included. - `include_all_clusters` (Boolean) Whether to include all clusters in the backup. If set to false, only the clusters specified in `cluster_uids` will be included. -- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. +- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. (Note: Starting with Palette version 4.6, the `include_cluster_resources` attribute will be changed to a string type, supporting the values `always`, `never`, and `auto`.) - `include_disks` (Boolean) Whether to include the disks in the backup. If set to false, only the cluster configuration will be backed up. - `namespaces` (Set of String) The list of Kubernetes namespaces to include in the backup. If not specified, all namespaces will be included. diff --git a/docs/resources/virtual_cluster.md b/docs/resources/virtual_cluster.md index 53e8db2e..f8ee1870 100644 --- a/docs/resources/virtual_cluster.md +++ b/docs/resources/virtual_cluster.md @@ -100,7 +100,7 @@ Optional: - `cluster_uids` (Set of String) The list of cluster UIDs to include in the backup. If `include_all_clusters` is set to `true`, then all clusters will be included. - `include_all_clusters` (Boolean) Whether to include all clusters in the backup. If set to false, only the clusters specified in `cluster_uids` will be included. -- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. +- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. (Note: Starting with Palette version 4.6, the `include_cluster_resources` attribute will be changed to a string type, supporting the values `always`, `never`, and `auto`.) - `include_disks` (Boolean) Whether to include the disks in the backup. If set to false, only the cluster configuration will be backed up. - `namespaces` (Set of String) The list of Kubernetes namespaces to include in the backup. If not specified, all namespaces will be included. diff --git a/docs/resources/workspace.md b/docs/resources/workspace.md index feef206e..6da5e9fb 100644 --- a/docs/resources/workspace.md +++ b/docs/resources/workspace.md @@ -140,7 +140,7 @@ Optional: - `cluster_uids` (Set of String) The list of cluster UIDs to include in the backup. If `include_all_clusters` is set to `true`, then all clusters will be included. - `include_all_clusters` (Boolean) Whether to include all clusters in the backup. If set to false, only the clusters specified in `cluster_uids` will be included. -- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. +- `include_cluster_resources` (Boolean) Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. (Note: Starting with Palette version 4.6, the `include_cluster_resources` attribute will be changed to a string type, supporting the values `always`, `never`, and `auto`.) - `include_disks` (Boolean) Whether to include the disks in the backup. If set to false, only the cluster configuration will be backed up. - `namespaces` (Set of String) The list of Kubernetes namespaces to include in the backup. If not specified, all namespaces will be included. diff --git a/spectrocloud/resource_cluster_aws_expand_test.go b/spectrocloud/resource_cluster_aws_expand_test.go index 08b4c84e..29ebd33f 100644 --- a/spectrocloud/resource_cluster_aws_expand_test.go +++ b/spectrocloud/resource_cluster_aws_expand_test.go @@ -60,10 +60,9 @@ func TestToMachinePoolAws(t *testing.T) { "control_plane": false, "control_plane_as_worker": false, "az_subnets": map[string]interface{}{ - "us-west-2a": "subnet-abc123", - "us-west-2b": "subnet-def456", + "us-west-1a": "subnet-1", }, - "azs": schema.NewSet(schema.HashString, []interface{}{"us-west-2a", "us-west-2b"}), + "azs": schema.NewSet(schema.HashString, []interface{}{"us-west-1a"}), "capacity_type": "spot", "max_price": "0.5", "node_repave_interval": 10, @@ -71,13 +70,12 @@ func TestToMachinePoolAws(t *testing.T) { vpcId: "vpc-67890", expected: &models.V1AwsMachinePoolConfigEntity{ CloudConfig: &models.V1AwsMachinePoolCloudConfigEntity{ - Azs: []string{"us-west-2a", "us-west-2b"}, + Azs: []string{"us-west-1a"}, InstanceType: types.Ptr("t3.medium"), CapacityType: types.Ptr("spot"), RootDeviceSize: 50, Subnets: []*models.V1AwsSubnetEntity{ - {ID: "subnet-abc123", Az: "us-west-2a"}, - {ID: "subnet-def456", Az: "us-west-2b"}, + {ID: "subnet-1", Az: "us-west-1a"}, }, SpotMarketOptions: &models.V1SpotMarketOptions{ MaxPrice: "0.5", diff --git a/spectrocloud/schemas/backup_policy.go b/spectrocloud/schemas/backup_policy.go index 04a64e75..77d981d2 100644 --- a/spectrocloud/schemas/backup_policy.go +++ b/spectrocloud/schemas/backup_policy.go @@ -40,7 +40,7 @@ func BackupPolicySchema() *schema.Schema { Type: schema.TypeBool, Optional: true, Default: true, - Description: "Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up.", + Description: "Whether to include the cluster resources in the backup. If set to false, only the cluster configuration and disks will be backed up. (Note: Starting with Palette version 4.6, the `include_cluster_resources` attribute will be changed to a string type, supporting the values `always`, `never`, and `auto`.)", }, "namespaces": { Type: schema.TypeSet, diff --git a/templates/data-sources/pack.md.tmpl b/templates/data-sources/pack.md.tmpl index 9f795e61..04c002c3 100644 --- a/templates/data-sources/pack.md.tmpl +++ b/templates/data-sources/pack.md.tmpl @@ -11,7 +11,7 @@ description: |- -~> Starting with version 0.21.0 the attribute `registry_uid` is required. +~> Starting with Palette version 4.5 (and the corresponding provider release), the `registry_uid` attribute will become required. The existing `filters` attribute will be deprecated, and a new `pack_filters` attribute will be introduced for advanced search functionality. ## Example Usage @@ -50,4 +50,4 @@ data "spectrocloud_pack" "cni" { } ``` -{{ .SchemaMarkdown | trimspace }} \ No newline at end of file +{{ .SchemaMarkdown | trimspace }}