@@ -92,6 +92,12 @@ var schemaNodeConfig = &schema.Schema{
92
92
ForceNew : true ,
93
93
Default : false ,
94
94
},
95
+
96
+ "min_cpu_platform" : {
97
+ Type : schema .TypeString ,
98
+ Optional : true ,
99
+ ForceNew : true ,
100
+ },
95
101
},
96
102
},
97
103
}
@@ -159,6 +165,10 @@ func expandNodeConfig(v interface{}) *container.NodeConfig {
159
165
// Preemptible Is Optional+Default, so it always has a value
160
166
nc .Preemptible = nodeConfig ["preemptible" ].(bool )
161
167
168
+ if v , ok := nodeConfig ["min_cpu_platform" ]; ok {
169
+ nc .MinCpuPlatform = v .(string )
170
+ }
171
+
162
172
return nc
163
173
}
164
174
@@ -170,15 +180,16 @@ func flattenNodeConfig(c *container.NodeConfig) []map[string]interface{} {
170
180
}
171
181
172
182
config = append (config , map [string ]interface {}{
173
- "machine_type" : c .MachineType ,
174
- "disk_size_gb" : c .DiskSizeGb ,
175
- "local_ssd_count" : c .LocalSsdCount ,
176
- "service_account" : c .ServiceAccount ,
177
- "metadata" : c .Metadata ,
178
- "image_type" : c .ImageType ,
179
- "labels" : c .Labels ,
180
- "tags" : c .Tags ,
181
- "preemptible" : c .Preemptible ,
183
+ "machine_type" : c .MachineType ,
184
+ "disk_size_gb" : c .DiskSizeGb ,
185
+ "local_ssd_count" : c .LocalSsdCount ,
186
+ "service_account" : c .ServiceAccount ,
187
+ "metadata" : c .Metadata ,
188
+ "image_type" : c .ImageType ,
189
+ "labels" : c .Labels ,
190
+ "tags" : c .Tags ,
191
+ "preemptible" : c .Preemptible ,
192
+ "min_cpu_platform" : c .MinCpuPlatform ,
182
193
})
183
194
184
195
if len (c .OauthScopes ) > 0 {
0 commit comments