Skip to content

Commit

Permalink
Promote enable_confidential_storage from beta to GA
Browse files Browse the repository at this point in the history
  • Loading branch information
Sneha-at committed Feb 15, 2024
1 parent 56fb584 commit f469948
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -675,14 +675,12 @@ func schemaNodeConfig() *schema.Schema {
},
},
},
<% unless version == 'ga' -%>
"enable_confidential_storage": {
Type: schema.TypeBool,
Optional: true,
ForceNew: true,
Description: `If enabled boot disks are configured with confidential mode.`,
},
<% end -%>
},
},
}
Expand Down Expand Up @@ -969,11 +967,9 @@ func expandNodeConfig(v interface{}) *container.NodeConfig {
nc.SoleTenantConfig = expandSoleTenantConfig(v)
}

<% unless version == 'ga' -%>
if v,ok := nodeConfig["enable_confidential_storage"]; ok {
nc.EnableConfidentialStorage = v.(bool)
}
<% end -%>

<% unless version == "ga" -%>
if v, ok := nodeConfig["host_maintenance_policy"]; ok {
Expand Down Expand Up @@ -1213,9 +1209,7 @@ func flattenNodeConfig(c *container.NodeConfig, v interface{}) []map[string]inte
"advanced_machine_features": flattenAdvancedMachineFeaturesConfig(c.AdvancedMachineFeatures),
"sole_tenant_config": flattenSoleTenantConfig(c.SoleTenantConfig),
"fast_socket": flattenFastSocket(c.FastSocket),
<% unless version == 'ga' -%>
"enable_confidential_storage": c.EnableConfidentialStorage,
<% end -%>
})

if len(c.OauthScopes) > 0 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9352,7 +9352,6 @@ func testAccContainerCluster_additional_pod_ranges_config(name string, nameCount
`, name, name, name, aprc)
}

<% unless version == 'ga' -%>
func TestAccContainerCluster_withConfidentialBootDisk(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -9521,7 +9520,6 @@ resource "google_container_cluster" "without_confidential_boot_disk" {
}
`, clusterName, npName, networkName, subnetworkName)
}
<% end -%>

<% unless version == 'ga' -%>
func testAccContainerCluster_withWorkloadALTSConfig(projectID, name, networkName, subnetworkName string, enable bool) string {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4080,8 +4080,6 @@ resource "google_container_node_pool" "np" {
}
<% end -%>

<% unless version == 'ga' -%>

func TestAccContainerNodePool_withConfidentialBootDisk(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -4207,4 +4205,3 @@ resource "google_container_node_pool" "without_confidential_boot_disk" {
}
`, cluster, networkName, subnetworkName, np)
}
<% end -%>

0 comments on commit f469948

Please sign in to comment.