aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/gce/gce.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gce/gce.go')
-rw-r--r--pkg/gce/gce.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/gce/gce.go b/pkg/gce/gce.go
index 7100665ef..4a5491e25 100644
--- a/pkg/gce/gce.go
+++ b/pkg/gce/gce.go
@@ -118,7 +118,7 @@ func NewContext(customZoneID string) (*Context, error) {
}
func (ctx *Context) CreateInstance(name, machineType, image, sshkey string,
- preemptible, displayDevice bool) (string, error) {
+ tags []string, preemptible, displayDevice bool) (string, error) {
prefix := "https://www.googleapis.com/compute/v1/projects/" + ctx.ProjectID
sshkeyAttr := "syzkaller:" + sshkey
oneAttr := "1"
@@ -165,6 +165,7 @@ func (ctx *Context) CreateInstance(name, machineType, image, sshkey string,
DisplayDevice: &compute.DisplayDevice{
EnableDisplay: displayDevice,
},
+ Tags: &compute.Tags{Items: tags},
}
retry:
if !instance.Scheduling.Preemptible && strings.HasPrefix(machineType, "e2-") {