Commit Graph

22 Commits

Author SHA1 Message Date
Oleksandr Ierenkov 384f709e8c Cleaning kerberos cache files on unstage phase
Extending initial support for kerberos-based ticket mounting.
Previously, cache has been written directly to the expected file - krb5cc_*.
With this change, cache is written to the base64(volumeID) file,
and then symlink krb5cc_* created pointing to the file with the cache.
During unstage phase only volumeID and mount path is available, and
having volumeID it's possible to do the cleanup with simple traversing
directory containing the caches.
2023-05-20 09:36:33 -04:00
Oleksandr Ierenkov d9aa489da5 Adding support for sec=krb5 mounting
When mounting with kerberos security, ticket cache
is expected to be set up on the host, pointing to the
/var/lib/kubelet/kubernetes/krb5cc_${uid}.
Credential cache is then taken from the creds secret and
written to the file, that is available to the host for
using.
2023-05-05 10:57:48 -04:00
andyzhangx 41f4aee54f test: fix ut 2022-12-21 06:46:30 +00:00
andyzhangx 232d4bf711 chore: upgrade to k8s 1.26.0 lib 2022-12-18 12:27:14 +00:00
andyzhangx ae1d36ef83 feat: add removeSMBMappingDuringUnmount in chart config
fix

fix ut

fix

fix

fix ut

fix win ut

fix

fix ut

fix
2022-08-14 14:54:09 +00:00
vitaliy-leschenko 277160089d Calls RemoveSmbGlobalMapping when it necessary. 2022-08-09 20:11:19 +03:00
andyzhangx b481a50036 test: add unit tests for pv/pvc metadata check
fix
2022-06-19 03:07:45 +00:00
andyzhangx 277e1b6828 fix: gid conflict issue between sc and fsGroup setting 2022-03-24 09:35:11 +00:00
andyzhangx 827cde0472 fix: NodePublishVolume idempotent issue 2022-02-21 14:29:23 +00:00
andyzhangx 7b25f5b2df feat: disable GET_VOLUME_STATS by default
fix test
2021-11-25 14:25:19 +00:00
andyzhangx 487c1c5d43 fix: remove unnecessary lock in NodePublish 2021-05-20 05:03:28 +00:00
andyzhangx f7bc14c407 chore: switch to use k8s.io/mount-utils
fix windows build error
2021-04-23 09:05:18 +00:00
Harshika ad176e84a7 fix: Handle concurrent operation of NodeUnstage with NodeStage and NodeUnpublish with NodePublish 2021-01-17 21:50:12 +05:30
andyzhangx 6e02b11d8c feat: add GetVolumeStats support 2021-01-04 13:07:35 +00:00
Mayank Shah a5289618af fix: enable unit tests on Windows with CSI Proxy mount
Signed-off-by: Mayank Shah <mayankshah1614@gmail.com>
2020-09-28 12:02:19 +05:30
Mayank Shah 194d5512d3 test: Fix `TestNodeStageVolume` on Windows
Signed-off-by: Mayank Shah <mayankshah1614@gmail.com>
2020-09-10 17:37:43 +05:30
andyzhangx bfc941ff14 test: fix windows unit test 2020-09-07 01:27:12 +00:00
Mayank Shah d85b3c3041 refactor: add `skipTestIfWindows` method to reduce lines of code
Signed-off-by: Mayank Shah <mayankshah1614@gmail.com>
2020-09-05 17:51:33 +05:30
Mayank Shah a311dcc88d fix: unit test failure in windows
Signed-off-by: Mayank Shah <mayankshah1614@gmail.com>
2020-09-05 17:30:50 +05:30
Animesh Kumar 2b66ac4c7c test: Add unit test for nodeserver
This commit adds unit test for nodeserver.
A fake mounter is also added to support the
unit tests.

Redundant checks for target path in
NodePublishVolume has been removed. A typo
is also fixed in NodeUnstageVolume.

Signed-off-by: Animesh Kumar <animuz111@gmail.com>
2020-07-09 10:03:56 +05:30
Animesh Kumar 881f93f523 test: Add unit tests
This commit adds unit tests for csi-common,
mounter and smb.
A testMode parameter has been introduced in
server to enable running of unit tests.
Unit tests for unimplemented methods are also
added.

Signed-off-by: Animesh Kumar <animuz111@gmail.com>
2020-07-02 05:21:35 +05:30
Animesh Kumar 283ab10146 Fix password exposed in logs
Signed-off-by: Animesh Kumar <animuz111@gmail.com>
2020-05-14 14:42:56 +05:30