Skip to content

Commit e8d04c0

Browse files
committed
Updated image to publicly accessible one. If instance doesn't exist on delete, return success
1 parent e035ac6 commit e8d04c0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/remote/run_remote/run_remote.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import (
2929

3030
"k8s.io/apimachinery/pkg/util/uuid"
3131
"k8s.io/apimachinery/pkg/util/wait"
32+
gce "sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/gce-cloud-provider"
3233
"sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/test/remote/remote"
3334

3435
"github.com/golang/glog"
@@ -268,7 +269,7 @@ func createInstance(serviceAccount string) (string, error) {
268269
myuuid := string(uuid.NewUUID())
269270
glog.V(2).Infof("Creating instance: %v", name)
270271

271-
imageURL := "https://www.googleapis.com/compute/v1/projects/eip-images/global/images/debian-9-drawfork-v20180423"
272+
imageURL := "https://www.googleapis.com/compute/v1/projects/ml-images/global/images/debian-9-tf-1-9-v20180625"
272273
i := &compute.Instance{
273274
Name: name,
274275
MachineType: machineType(""),
@@ -400,6 +401,9 @@ func deleteInstance(host string) {
400401
glog.Infof("Deleting instance %q", host)
401402
_, err := computeService.Instances.Delete(*project, *zone, host).Do()
402403
if err != nil {
404+
if gce.IsGCEError(err, "notFound") {
405+
return
406+
}
403407
glog.Errorf("Error deleting instance %q: %v", host, err)
404408
}
405409
}

0 commit comments

Comments
 (0)