Skip to content

Commit cbb99f4

Browse files
committed
update node
1 parent d195b87 commit cbb99f4

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

examples/node_pool/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ module "gke" {
102102
{
103103
name = "pool-06"
104104
node_count = 1
105-
machine_type = "n1-highmem-96"
105+
machine_type = "c2-standard-30"
106106
node_affinity = "{\"key\": \"compute.googleapis.com/node-group-name\", \"operator\": \"IN\", \"values\": [\"${google_compute_node_group.soletenant-nodes.name}\"]}"
107107
},
108108
]
@@ -170,7 +170,7 @@ resource "google_compute_node_template" "soletenant-tmpl" {
170170
name = "soletenant-tmpl-${var.cluster_name_suffix}"
171171
region = var.region
172172

173-
node_type = "n1-node-96-624"
173+
node_type = "c2-node-60-240"
174174
}
175175

176176
resource "google_compute_node_group" "soletenant-nodes" {

test/integration/testutils/utils.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,21 +94,22 @@ func TGKEAssertGolden(assert *assert.Assertions, golden *golden.GoldenFile, clus
9494
})
9595

9696
// Cluster assertions
97-
fmt.Sprintf("DEBUG: Cluster assertions")
9897
golden.JSONPathEqs(assert, *clusterJson, clusterCheckPaths)
9998

10099
// NodePool assertions
101-
fmt.Sprintf("DEBUG: NodePool assertions")
102100
for _, nodePool := range nodePools {
103-
fmt.Sprintf("DEBUG: NodePool assertions for %s", nodePool)
104101
assert.Truef(clusterJson.Get(fmt.Sprintf("nodePools.#(name==%s).name", nodePool)).Exists(), "NodePool not found: %s", nodePool)
105102

106103
nodeCheckPaths := utils.GetTerminalJSONPaths(golden.GetJSON().Get(fmt.Sprintf("nodePools.#(name==%s)", nodePool)))
107104

108105
for _, nodeCheckPath := range nodeCheckPaths {
106+
fmt.Printf("DEBUG: NodePool %s nodeCheckPath assertions for %s START\n", nodePool, nodeCheckPath)
109107
gotData := golden.ApplySanitizers(clusterJson.Get(fmt.Sprintf("nodePools.#(name==%s)", nodePool)).Get(nodeCheckPath).String())
108+
fmt.Printf("DEBUG: NodePool %s nodeCheckPath assertions for %s #1\n", nodePool, nodeCheckPath)
110109
gfData := golden.GetJSON().Get(fmt.Sprintf("nodePools.#(name==%s)", nodePool)).Get(nodeCheckPath).String()
110+
fmt.Printf("DEBUG: NodePool %s nodeCheckPath assertions for %s #2\n", nodePool, nodeCheckPath)
111111
assert.Equalf(gfData, gotData, "For node %q path %q expected %q to match fixture %q", nodePool, nodeCheckPath, gotData, gfData)
112+
fmt.Printf("DEBUG: NodePool %s nodeCheckPath assertions for %s FINISH\n", nodePool, nodeCheckPath)
112113
}
113114
}
114115
}

0 commit comments

Comments
 (0)