Add groupSnapshotNamePrefix and groupSnapshotNameUUIDLength CLI options

This commit is contained in:
Raunak Pradip Shah
2023-04-26 13:24:09 +05:30
parent d8d01a38e4
commit 9e2d4f6264
3 changed files with 35 additions and 14 deletions

View File

@@ -85,6 +85,8 @@ func NewCSISnapshotSideCarController(
resyncPeriod time.Duration,
snapshotNamePrefix string,
snapshotNameUUIDLength int,
groupSnapshotNamePrefix string,
groupSnapshotNameUUIDLength int,
extraCreateMetadata bool,
contentRateLimiter workqueue.RateLimiter,
enableVolumeGroupSnapshots bool,
@@ -103,7 +105,7 @@ func NewCSISnapshotSideCarController(
client: client,
driverName: driverName,
eventRecorder: eventRecorder,
handler: NewCSIHandler(snapshotter, groupSnapshotter, timeout, snapshotNamePrefix, snapshotNameUUIDLength),
handler: NewCSIHandler(snapshotter, groupSnapshotter, timeout, snapshotNamePrefix, snapshotNameUUIDLength, groupSnapshotNamePrefix, groupSnapshotNameUUIDLength),
resyncPeriod: resyncPeriod,
contentStore: cache.NewStore(cache.DeletionHandlingMetaNamespaceKeyFunc),
contentQueue: workqueue.NewNamedRateLimitingQueue(contentRateLimiter, "csi-snapshotter-content"),