Skip to content

Commit c79926b

Browse files
kvapsclaude
andcommitted
fix(linstor): use camelCase for relocateAfterRestore parameter
Co-Authored-By: Claude <[email protected]> Signed-off-by: Andrei Kvapil <[email protected]>
1 parent bf70831 commit c79926b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/system/linstor/images/linstor-csi/patches/001-relocate-after-clone-restore.diff‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ index 5474963..2eb8a7c 100644
339339

340340
// paramKeyString retrieves an enum value from the enum constants string name.
341341
diff --git a/pkg/volume/snapshot_params.go b/pkg/volume/snapshot_params.go
342-
index d167cb8..c7a6505 100644
342+
index d167cb8..50b70fb 100644
343343
--- a/pkg/volume/snapshot_params.go
344344
+++ b/pkg/volume/snapshot_params.go
345345
@@ -35,6 +35,7 @@ type SnapshotParameters struct {
@@ -354,7 +354,7 @@ index d167cb8..c7a6505 100644
354354
p.LinstorTargetClusterID = v
355355
case "/linstor-target-storage-pool":
356356
p.LinstorTargetStoragePool = v
357-
+ case "/relocate-after-restore":
357+
+ case "/relocateAfterRestore":
358358
+ b, err := strconv.ParseBool(v)
359359
+ if err != nil {
360360
+ return nil, err

‎packages/system/linstor/templates/volumesnapshotclass.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
driver: linstor.csi.linbit.com
88
deletionPolicy: Delete
99
parameters:
10-
snap.linstor.csi.linbit.com/relocate-after-restore: "true"
10+
snap.linstor.csi.linbit.com/relocateAfterRestore: "true"
1111
---
1212
apiVersion: snapshot.storage.k8s.io/v1
1313
kind: VolumeSnapshotClass

0 commit comments

Comments
 (0)