include public_ip flag in request to warmer service
@@ -1353,6 +1353,7 @@ func (p *gceProvider) warmerRequestInstance(ctx gocontext.Context, zone string,
Zone: zone,
ImageName: inst.Disks[0].InitializeParams.SourceImage,
MachineType: inst.MachineType,
+ PublicIP: p.ic.PublicIP,
}
reqBody, err := json.Marshal(warmerReq)
@@ -1407,6 +1408,7 @@ type warmerRequest struct {
Zone string `json:"zone"`
ImageName string `json:"image_name"`
MachineType string `json:"machine_type"`
+ PublicIP bool `json:"public_ip"`
}
type warmerResponse struct {
