Skip to content

Commit 9a7a652

Browse files
Add image only if its a boot disk
1 parent 8846555 commit 9a7a652

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/webhooks/machine_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1372,7 +1372,7 @@ func defaultGCPDisks(disks []*machinev1beta1.GCPDisk, clusterID string) []*machi
13721372
disk.Type = defaultGCPDiskType
13731373
}
13741374

1375-
if disk.Image == "" {
1375+
if disk.Boot == true && disk.Image == "" {
13761376
disk.Image = defaultGCPDiskImage()
13771377
}
13781378
}

0 commit comments

Comments
 (0)