Introduce a new `ComputeImageInsert()` method for importing images into GCP. It uses the `compute.Images.Insert()` API [1], which has many advantages over the currently used way of importing images using the CloudBuild API. The advantages are mainly that the image is imported as is and no additional cache files or VMs are created as part of the import process. Therefore there is no need to do additional cleanup of cache files after importing the image. In addition, the import itself is approximately 30% faster for RHEL images when using the `Insert()` call. Nevertheless the `Insert()` call accepts only gzip-ed tarball with a RAW disk, unlike the `Import()` call, which accepts basically any virtual disk format. [1] https://cloud.google.com/compute/docs/reference/rest/v1/images/insert Signed-off-by: Tomas Hozza <thozza@redhat.com> |
||
|---|---|---|
| .. | ||
| cloudbuild.go | ||
| cloudbuild_test.go | ||
| compute.go | ||
| gcp.go | ||
| storage.go | ||