diff --git a/driver/controller.go b/driver/controller.go index 0d6c87b..83e6fe9 100644 --- a/driver/controller.go +++ b/driver/controller.go @@ -58,6 +58,9 @@ const ( // to create a volume that is larger than what we support maximumVolumeSizeInBytes int64 = 4398046511104 + // createdByYandex is used to tag volumes that are created by this CSI plugin + createdByYandex = "Created by Yandex CSI driver" + // defaultVolumeSizeInBytes is used when the user did not provide a size or // the size they provided did not satisfy our requirements defaultVolumeSizeInBytes int64 = 5 * giB @@ -169,7 +172,8 @@ func (d *Driver) CreateVolume(ctx context.Context, req *csi.CreateVolumeRequest) diskCreateRequest := &compute.CreateDiskRequest{ FolderId: d.folderID, Name: volumeName, - Description: d.clusterName, + Description: createdByYandex, + Labels: map[string]string{"cluster": d.clusterName}, TypeId: typeID, ZoneId: zone, Size: size,