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