Skip to content

Commit 2d3c5fd

Browse files
committed
Support add the snapshot labels to images
Signed-off-by: JenTing Hsiao <[email protected]>
1 parent 8048b98 commit 2d3c5fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/gce-cloud-provider/compute/gce-compute.go

+1
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,7 @@ func (cloud *CloudProvider) CreateImage(ctx context.Context, project string, vol
924924
Name: imageName,
925925
StorageLocations: snapshotParams.StorageLocations,
926926
Description: description,
927+
Labels: snapshotParams.Labels,
927928
}
928929

929930
_, err = cloud.service.Images.Insert(project, image).Context(ctx).ForceCreate(true).Do()

0 commit comments

Comments
 (0)