Jan Safranek
6005c3b512
Remove OpenStack cloud provider
...
And keep OpenStack Cinder CSI translation
2022-11-11 12:04:55 +01:00
Jan Safranek
5b284a50b7
Revert "Remove references to openstack and cinder"
...
This reverts commit 9bbf01bae9
.
2022-11-10 18:25:30 +01:00
Kubernetes Prow Robot
a7117b716b
Merge pull request #112344 from zlabjp/fix-invalid-attach-limit
...
Fix incorrect "Invalid attach limit" error when maxAttachLimit is 0
2022-11-09 08:30:13 -08:00
Jan Safranek
167d27a790
Save SELinux context both in MountDevice and SetUp
...
And make it feature gated in both places.
2022-11-08 18:10:51 +01:00
Jan Safranek
e575e60ea4
Reconstruct SELinux mount option
...
When reconstructing volumes from disk after kubelet restart, reconstruct
also context=XYZ mount option and add it to the ActualStateOfWorld.
2022-11-08 11:17:38 +01:00
Kubernetes Prow Robot
1c230d519e
Merge pull request #113262 from jsafrane/rework-reconstruction
...
Rework volume reconstruction
2022-11-07 12:42:29 -08:00
Kubernetes Prow Robot
d9db8db68f
Merge pull request #111707 from leiyiz/migration
...
remove const that's not used
2022-11-04 13:48:15 -07:00
Kubernetes Prow Robot
ee640d7756
Merge pull request #113336 from divyenpatel/vsphere-csi-migration-ga
...
Promote CSIMigrationvSphere to GA
2022-11-04 10:52:25 -07:00
Divyen Patel
b849c59ade
Promote CSIMigrationvSphere to GA
2022-11-04 07:30:16 -07:00
Fabio Bertinatto
b19172c58f
Promote DelegateFSGroupToCSIDriver feature to GA
2022-11-04 07:26:17 -03:00
Jan Safranek
fc245b339b
Refactor ConstructVolumeSpec
...
Return a struct from ConstructVolumeSpec to be able to add more fields to
it later.
2022-11-03 16:55:13 +01:00
Kubernetes Prow Robot
7d9c0e0a78
Merge pull request #113411 from jsafrane/fix-selinux-context-mount
...
Fix SELinux context mount with unknown context
2022-10-31 17:00:44 -07:00
Kubernetes Prow Robot
4c657e5014
Merge pull request #110403 from claudiubelu/unittests-3
...
unittests: Fixes unit tests for Windows (part 3)
2022-10-31 15:52:44 -07:00
Kubernetes Prow Robot
373a78feab
Merge pull request #113321 from jsafrane/selinux-all-plugins
...
Add SELinux mount support to all volume plugins
2022-10-31 13:14:44 -07:00
Jan Safranek
8dd3510032
Fix SELinux context mount with unknown context
...
Don't mount with SELinux mount option if kubelet does not know the SELinux
context, i.e. MounterArgs.SELinuxLabel is ""
2022-10-31 19:11:48 +01:00
Jan Safranek
63ab1c86e7
Add SELinux mount support to all volume plugins
...
.. that are not migrated to CSI in 1.26 *and* are based on a block device.
NFS and CephFS may use the same volume as several PVs and then mounting
with -o context won't work.
2022-10-31 13:02:51 +01:00
Kubernetes Prow Robot
9702161caa
Merge pull request #112597 from mythi/grpc-authority
...
grpc: set localhost Authority to unix client calls
2022-10-31 03:12:45 -07:00
Kubernetes Prow Robot
a74e16fc81
Merge pull request #113306 from jsafrane/csidriver-setup
...
Move CSIDriver checks from NewMounter to SetUpAt
2022-10-26 17:08:43 -07:00
Kubernetes Prow Robot
2a224dff02
Merge pull request #108874 from jsafrane/rework-csi-mount-json
...
Move CSI json file saving to SetUpAt()
2022-10-26 17:08:32 -07:00
Jan Safranek
483fd45e8e
Move fsGroupPolicy from NewMounter to SetUpAt
...
getFSGroupPolicy needs to get CSIDriver from the API server, which may not
be available during volume reconstruction at kubelet startup.
2022-10-25 11:10:11 +02:00
Jan Safranek
04183005e4
Move lifecycle checks from NewMounter to SetUpAt
...
The checks need to get CSIDriver from the API server and the API server may
not be the case when NewMounter is called during volume reconstruction.
2022-10-24 17:30:51 +02:00
Kubernetes Prow Robot
38c659eb9f
Merge pull request #111534 from claudiubelu/unittests-7
...
unittests: Fixes unit tests for Windows
2022-10-24 06:30:25 -07:00
Claudiu Belu
9f95b7b18c
unittests: Fixes unit tests for Windows (part 3)
...
Currently, there are some unit tests that are failing on Windows due to
various reasons:
- paths not properly joined (filepath.Join should be used).
- Proxy Mode IPVS not supported on Windows.
- DeadlineExceeded can occur when trying to read data from an UDP
socket. This can be used to detect whether the port was closed or not.
- In Windows, with long file name support enabled, file names can have
up to 32,767 characters. In this case, the error
windows.ERROR_FILENAME_EXCED_RANGE will be encountered instead.
- files not closed, which means that they cannot be removed / renamed.
- time.Now() is not as precise on Windows, which means that 2
consecutive calls may return the same timestamp.
- path.Base() will return the same path. filepath.Base() should be used
instead.
- path.Join() will always join the paths with a / instead of the OS
specific separator. filepath.Join() should be used instead.
2022-10-21 19:25:48 +03:00
Kubernetes Prow Robot
962235c86a
Merge pull request #110559 from danishprakash/danish-default-storageclass
...
pkg/admission/storageclass: pick one storageclass conditionally if >1 present
2022-10-19 13:56:55 -07:00
Kubernetes Prow Robot
bf14677914
Merge pull request #112546 from oscr/the-the
...
grammar: replace all occurrences of "the the" with "the"
2022-10-19 10:03:02 -07:00
danishprakash
f10f4d372c
pv_controller: update tests for multiple storageclasses
...
Signed-off-by: danishprakash <grafitykoncept@gmail.com >
2022-10-19 09:33:44 +05:30
danishprakash
f12325add3
pkg/admission/storageclass: pick random storageclass if >1 present
...
Signed-off-by: danishprakash <grafitykoncept@gmail.com >
2022-10-19 09:30:48 +05:30
Kubernetes Prow Robot
b6d89e756a
Merge pull request #112571 from claudiubelu/fix-nested-mountpoints
...
Fixes getNestedMountpoints grouping
2022-10-18 18:57:11 -07:00
Claudiu Belu
6e9f428547
Fixes getNestedMountpoints grouping
...
Currently, getNestedMountpoints sorts using sort.Strings, which would
sort the following strings in this exact order:
/dir/nested, /dir/nested-vol, /dir/nested.vol, /dir/nested/double, /dir/nested2
Because of this, "nested/double" is returned as well, even though it shouldn't
have been. This issue is worse on Windows, where the path separator is typically
the backslash.
This commit addresses this issue by checking if a nested mount point has been
previously seen or not.
2022-10-18 15:19:17 +03:00
Jan Safranek
f76efd0400
Move CSI json file saving to SetUpAt()
...
When saving a json state file in NewMounter, we risk the json file will not
be cleaned when SetUpAt() fails. Move it to SetUpAt() instead.
2022-10-18 14:19:06 +02:00
Claudiu Belu
af77381e01
unit tests: Skip Windows-unrelated tests on Windows
...
Some of the unit tests cannot pass on Windows due to various reasons:
- fsnotify does not have a Windows implementation.
- Proxy Mode IPVS not supported on Windows.
- Seccomp not supported on Windows.
- VolumeMode=Block is not supported on Windows.
- iSCSI volumes are mounted differently on Windows, and iscsiadm is a
Linux utility.
2022-10-18 12:43:07 +03:00
Oscar Utbult
e4f776f230
grammar: replace all occurrences of "the the" with "the"
2022-10-14 09:03:14 +02:00
Paco Xu
2ce7a81169
fsnotify: use event.Has instead of "event.Op&h == h"
2022-10-13 13:42:26 +08:00
Kubernetes Prow Robot
3af1e5fdf6
Merge pull request #112707 from enj/enj/i/https_links
...
Use https links for k8s KEPs, issues, PRs, etc
2022-09-29 12:34:40 -07:00
Davanum Srinivas
f5339fc1ec
Remove references to already deleted volume plugins
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2022-09-25 15:26:22 -04:00
Monis Khan
b738be9b46
Use https links for k8s KEPs, issues, PRs, etc
...
Signed-off-by: Monis Khan <mok@microsoft.com >
2022-09-23 23:36:24 +00:00
Kubernetes Prow Robot
91a9ce28ac
Merge pull request #112607 from mattcary/ubuntu-path
...
Consider only plugin subpath when cleaning up mounts
2022-09-22 17:24:38 -07:00
Kubernetes Prow Robot
0fff024276
Merge pull request #112640 from humblec/rbd-owner
...
Add humblec to approvers and reviewers list for Ceph driver
2022-09-21 19:11:13 -07:00
Humble Chirammal
c15757d611
Add humblec to approvers and reviewers list for Ceph driver
...
Ref#
https://github.com/kubernetes/kubernetes/pull/95361
https://github.com/kubernetes/kubernetes/pull/111137
Signed-off-by: Humble Chirammal <hchiramm@redhat.com >
2022-09-21 20:01:39 +05:30
Matthew Cary
3993c23a74
Make mount ref search more robust
...
Change-Id: Id28c2d1c8e996c10e4ad19a993ebbe75b142c1af
2022-09-20 17:57:39 -07:00
Mikko Ylinen
fbcdf48bb8
grpc: set localhost Authority to unix client calls
...
Several reports exist (both with device plugins and CSI) that
kubelet w/ grpc-go sends invalid Authority header and some non
grpc-go servers reject these unix domain socket client connections.
grpc-go sets the Authority header correct when the dial address
is in a format where the its address scheme can be determined.
Instead of making changes to get the all server addresses to unix://
prefixed format, set grpc.WithAuthority("localhost") client connection
override to get the same result.
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com >
2022-09-20 13:15:36 +03:00
Kubernetes Prow Robot
60e2f6c519
Merge pull request #112509 from humblec/new-1
...
various corrections in pkg/volume
2022-09-19 09:09:18 -07:00
Kubernetes Prow Robot
64a38b165e
Merge pull request #112238 from demoManito/feat/optimize-ifelse
...
Optimize: correction code specification
2022-09-19 05:29:22 -07:00
Hemant Kumar
8d1e2e0faa
Do not return err if CSIdriver is not found
...
while checking for selinux support
2022-09-16 15:53:03 -04:00
Humble Chirammal
f22a74aa6a
various corrections in pkg/volume
...
Signed-off-by: Humble Chirammal <hchiramm@redhat.com >
2022-09-16 16:42:06 +05:30
Kubernetes Prow Robot
ee94dce5b1
Merge pull request #112015 from humblec/glusterfs-gone
...
Removal of GlusterFS code from the repo
2022-09-14 10:03:00 -07:00
Kubernetes Prow Robot
178f246bbc
Merge pull request #111381 from muyangren2/assert_Equal_azure
...
Fix test order pkg/volume/azuredd/azure_common_test.go
2022-09-14 04:59:01 -07:00
Humble Chirammal
c2a7bfd6b4
removal of glusterfs in-tree driver code from the source
...
Signed-off-by: Humble Chirammal <hchiramm@redhat.com >
2022-09-13 20:11:50 +05:30
demoManito
7a7c8d1ec9
revert interface check
2022-09-13 22:26:06 +08:00
Akanksha Kumari
86fa479273
Call SetupDevice only if Volume is not globally Mounted
2022-09-12 23:00:00 +05:30