From 978c86d12798e630731bc53b5f2d999a48ea049d Mon Sep 17 00:00:00 2001 From: justinsb Date: Tue, 28 Jun 2022 11:11:58 -0400 Subject: [PATCH] gce: set ProvisioningModel on InstanceTemplate Because of how we compare InstanceTemplates, this was causing spurious differences. Add the minimal support, setting the value to the default. --- upup/pkg/fi/cloudup/gcetasks/instancetemplate.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/upup/pkg/fi/cloudup/gcetasks/instancetemplate.go b/upup/pkg/fi/cloudup/gcetasks/instancetemplate.go index 22b4307bdc..8243e02717 100644 --- a/upup/pkg/fi/cloudup/gcetasks/instancetemplate.go +++ b/upup/pkg/fi/cloudup/gcetasks/instancetemplate.go @@ -249,6 +249,7 @@ func (e *InstanceTemplate) mapToGCE(project string, region string) (*compute.Ins scheduling = &compute.Scheduling{ AutomaticRestart: fi.Bool(false), OnHostMaintenance: "TERMINATE", + ProvisioningModel: "STANDARD", // TODO: Support Spot? Preemptible: true, } } else { @@ -256,6 +257,7 @@ func (e *InstanceTemplate) mapToGCE(project string, region string) (*compute.Ins AutomaticRestart: fi.Bool(true), // TODO: Migrate or terminate? OnHostMaintenance: "MIGRATE", + ProvisioningModel: "STANDARD", Preemptible: false, } }