ceph-csi/internal
Madhu Rajanna f7796081d3 cephfs: skip expand for BackingSnapshot volume
We should not call ExpandVolume for the BackingSnapshot
subvolume as there wont be any real subvolume created for
it and even if we call it the ExpandVolume will fail
fail as there is no real subvolume exists.

This commits fixes by adjusting the `if` check to ensure
that ExpandVolume will only be called either the
VolumeRequest is to create from a snapshot or volume
and BackingSnapshot is not true.

sample code here https://go.dev/play/p/PI2tNii5tTg

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2022-12-21 12:29:06 +00:00
..
cephfs cephfs: skip expand for BackingSnapshot volume 2022-12-21 12:29:06 +00:00
controller cleanup: ReconcilePersistentVolume consider passing it by pointer 2022-06-28 19:12:53 +00:00
csi-addons rbd: ignore stdErr for ceph osd blocklist when there is no error 2022-11-12 04:20:14 +00:00
csi-common util: make inode metrics optional in FilesystemNodeGetVolumeStats() 2022-10-13 19:02:47 +00:00
journal rbd: update namespace name in rados object 2022-10-28 15:50:01 +00:00
kms kms: Add GetSecret() to KMIP KMS 2022-10-17 17:33:52 +00:00
liveness cleanup: move log functions to new internal/util/log package 2021-08-26 09:34:05 +00:00
nfs util: make inode metrics optional in FilesystemNodeGetVolumeStats() 2022-10-13 19:02:47 +00:00
rbd rebase: remove protobuf dependency locking 2022-11-15 00:10:46 +00:00
util util: Add EncryptionTypeNone and unit tests 2022-10-17 17:33:52 +00:00