Skip to content

Commit

Permalink
specs out the additional fields for nmve_ssd (GoogleCloudPlatform#7427)
Browse files Browse the repository at this point in the history
Co-authored-by: Shuya Ma <[email protected]>
  • Loading branch information
2 people authored and dannawang0221 committed Mar 24, 2023
1 parent bdb1b3f commit 68c636b
Showing 1 changed file with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1313,29 +1313,33 @@ func TestAccContainerNodePool_ephemeralStorageLocalSsdConfig(t *testing.T) {
resource.TestStep{
Config: testAccContainerNodePool_ephemeralStorageLocalSsdConfig(cluster, np),
},
resource.TestStep{
ResourceName: "google_container_node_pool.np",
ImportState: true,
ImportStateVerify: true,
{
ResourceName: "google_container_node_pool.np",
ImportState: true,
ImportStateVerify: true,
},
},
})
}

func testAccContainerNodePool_ephemeralStorageLocalSsdConfig(cluster, np string) string {
return fmt.Sprintf(`
data "google_container_engine_versions" "central1a" {
location = "us-central1-a"
// this feature became available in 1.25.3-gke.1800, not sure if theres a better way to do
version_prefix = "1.25"
}

resource "google_container_cluster" "cluster" {
name = "%s"
location = "us-central1-c"
location = "us-central1-a"
min_master_version = data.google_container_engine_versions.central1a.latest_master_version
initial_node_count = 1
release_channel {
channel = "RAPID"
}
}

resource "google_container_node_pool" "np" {
name = "%s"
location = "us-central1-c"
location = "us-central1-a"
cluster = google_container_cluster.cluster.name
initial_node_count = 1

Expand Down

0 comments on commit 68c636b

Please sign in to comment.