carlory
5e048041e4
remove helper function for unused storage feature in pkg/proxy/util
2023-06-13 09:22:59 +08:00
Kubernetes Prow Robot
cb8d9f6867
Merge pull request #117283 from defo89/pv-recycler-change-cmd
...
change pv recycler scrub cmd to find -delete
2023-05-26 10:50:52 -07:00
carlory
666be79d67
legacy names of volume plugins have been gone a LONG time
2023-05-17 17:02:44 +08:00
Dmitri Fedotov
625c302505
change pv recycler scrub cmd to find -delete
...
PVs with large amount of files cannot be recycted with "rm" command and
are left in "Failed" state.
Hence we are switching to "find -delete" command.
2023-04-13 12:19:01 +03:00
Kubernetes Prow Robot
6a111bebe2
Merge pull request #116377 from kinvolk/rata/userns
...
KEP-127: user namespace support for stateless pods
2023-03-14 10:40:43 -07:00
杨军10092085
361e4ff0fa
volume: use contextual logging
2023-03-14 08:37:30 +08:00
Rodrigo Campos
8af3cce7fe
kubelet: remove GetHostIDsForPod()
...
Now KEP-127 relies on idmap mounts to do the ID translation and we won't
do any chowns in the kubelet.
This patch just removes the usage of GetHostIDsForPod() in
operationexecutor to do the chown, and also removes the
GetHostIDsForPod() method from the kubelet volume interface.
Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com >
2023-03-13 22:28:03 +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
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
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
Jan Safranek
cdb3ead5a9
Add SupportsSELinuxContextMount
...
Add a new call to VolumePlugin interface and change all its
implementations.
Kubelet's VolumeManager will be interested whether a volume supports
mounting with -o conext=XYZ or not to hanle SetUp() / MountDevice()
accordingly.
2022-08-04 10:51:28 +02:00
Rodrigo Campos
d07c2688fe
kubelet: add GetHostIDsForPod()
...
In future commits we will need this to set the user/group of supported
volumes of KEP 127 - Phase 1.
Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com >
2022-08-03 19:53:22 +02:00
Kubernetes Prow Robot
3dc51872f0
Merge pull request #111485 from humblec/glusterfs-deprecation
...
deprecate GlusterFS plugin from available in-tree drivers.
2022-07-31 19:26:27 -07:00
Humble Chirammal
e675bfee59
deprecate GlusterFS plugin from available in-tree drivers.
...
GlusterFS is one of the first dynamic provisioner which made into
Kubernetes release v1.4.
https://github.com/kubernetes/kubernetes/pull/30888
When CSI plugins/drivers to start appear, glusterfs' CSI driver
came into existence, however this project is not maintianed at
present and the last release happened few years back.
https://github.com/gluster/gluster-csi-driver/releases/tag/v0.0.9
The possibilities of migration to compatible CSI driver was also
discussed https://github.com/kubernetes/kubernetes/issues/100897
and consensus was to start the deprecation in v1.25.
This commit start the deprecation process of glusterfs plugin from
in-tree drivers.
Signed-off-by: Humble Chirammal <hchiramm@redhat.com >
2022-07-29 12:18:48 +05:30
Davanum Srinivas
a9593d634c
Generate and format files
...
- Run hack/update-codegen.sh
- Run hack/update-generated-device-plugin.sh
- Run hack/update-generated-protobuf.sh
- Run hack/update-generated-runtime.sh
- Run hack/update-generated-swagger-docs.sh
- Run hack/update-openapi-spec.sh
- Run hack/update-gofmt.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2022-07-26 13:14:05 -04:00
Kubernetes Prow Robot
20a7253a0e
Merge pull request #109853 from ping035627/k8s-220506
...
Cleanup FindPluginBySpec() in VolumePluginMgr
2022-07-01 07:29:22 -07:00
Davanum Srinivas
50bea1dad8
Move from k8s.gcr.io to registry.k8s.io
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2022-05-31 10:16:53 -04:00
PingWang
bbeec9bbaa
Cleanup FindPluginBySpec() in VolumePluginMgr
...
Signed-off-by: PingWang <wang.ping5@zte.com.cn >
2022-05-06 17:21:07 +08:00
Hemant Kumar
7a43406138
Do not update PVC if it already has updated size
2022-03-28 11:32:49 -04:00
Hemant Kumar
7fe33bfb7c
Remove needless checks for nodestage during expansion
2022-03-10 09:55:06 -05:00
Davanum Srinivas
91ade9f318
Switch pv-recycler container image to debian-base
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2022-03-03 13:37:17 -05:00
Kubernetes Prow Robot
475644ccd8
Merge pull request #106073 from ping035627/k8s-21110202
...
Cleanup FindPluginByName() in VolumePluginMgr
2022-01-07 07:52:29 -08:00
PingWang
075adb308d
Cleanup FindPluginByName() in VolumePluginMgr
...
Signed-off-by: PingWang <wang.ping5@zte.com.cn >
update typo
Signed-off-by: PingWang <wang.ping5@zte.com.cn >
update import
Signed-off-by: PingWang <wang.ping5@zte.com.cn >
2022-01-05 11:42:26 +08:00
Kubernetes Prow Robot
f0dbc32ed9
Merge pull request #106853 from gnufied/disable-exp-backoff-volume-not-inuse
...
When volume is not marked in-use, do not backoff
2021-12-22 19:46:37 -08:00
Hemant Kumar
7989f27044
use node informer to check volumes attachment status before backoff
...
fix unit tests
2021-12-20 11:57:05 -05:00
Scott Nice
d9cbe5d314
Added unit test for flex volume probe and updated DynamicPluginProber Probe() interface description
2021-12-14 10:48:51 -05:00
Scott Nice
5183513661
Fix gofmt verify
2021-12-09 09:18:22 -05:00
Scott Nice
1070eb7428
Fixed issue in plugin.go for bug #106696
...
Fixed issue in plugin.go where valid plugin events would be skipped if any plugin had an error. This meant that valid plugins would never be installed if another was in an error state as the events fired only once.
2021-11-27 15:07:19 -05:00
Kubernetes Prow Robot
f803daaca7
Merge pull request #101510 from huchengze/patch-12
...
migrate log in pkg/volume/plugins.go
2021-05-20 21:14:57 -07:00
Jiawei Wang
ce87fc97a1
DAdd some soon-to-be-removed plugins to deprecated volume plugin list
2021-05-06 18:41:37 -07:00
huccshen
45ec665142
migrate log in pkg/volume/plugins.go
2021-04-27 14:37:25 +08:00
wangyx1992
7fe934a72d
cleanup: fix log capitalization in volume package
...
Signed-off-by: wangyx1992 <wang.yixiang@zte.com.cn >
2021-04-14 21:58:56 +08:00
Jiawei Wang
6a7222cf4e
Add migrated field to storage_operation_duration_seconds metric
2021-02-12 17:35:01 -08:00
Chris Henzie
80bd46ce46
Prevent data race in volume plugin manager
2020-12-09 14:32:49 -08:00
Jan Safranek
62ecc68183
Lower the frequency of volume plugin deprecation warning
...
The warning is always logged (klog.Warningf), so make sure it's logged only
once per process. We've seen clusters where the deprecation warning was
about 20% of total logs.
2020-11-20 14:22:28 +01:00
Shihang Zhang
d2859cd89b
plumb service account token down to csi driver
2020-11-12 09:26:43 -08:00
Kubernetes Prow Robot
dd466bccde
Merge pull request #94527 from brahmaroutu/mount-utils-2
...
Change code to use staging/k8s.io/mount-utils
2020-09-21 17:46:47 -07:00
Matthew Cary
f2e23afcf1
Adds filtering of hosts to DialContexts.
...
The provided DialContext wraps existing clients' DialContext in an attempt to
preserve any existing timeout configuration. In some cases, we may replace
infinite timeouts with golang defaults.
- scaleio: tcp connect/keepalive values changed from 0/15 to 30/30
- storageos: no change
2020-09-18 00:07:32 +00:00
Srini Brahmaroutu
fbe5daed73
Change code to use staging/k8s.io/mount-utils
2020-09-16 21:51:24 -07:00
Hemant Kumar
7d6959ce2c
Add extra fields in node expansion CSI call
2020-07-01 11:34:31 -04:00
Jayasekhar Konduru
2a89577659
CSI: Modify VolumeAttachment check to use Informer/Cache
...
Change-Id: Ie70c8b6657c67eefbf13042f36d56ca84a2e42bb
2020-06-11 10:34:09 -07:00
Davanum Srinivas
442a69c3bd
switch over k/k to use klog v2
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2020-05-16 07:54:27 -04:00
Kubernetes Prow Robot
8d773421ee
Merge pull request #80973 from xiaoanyunfei/bugfix/orphan-volume
...
fix orphaned pod flexvolume can not be cleaned up
2020-04-01 20:50:23 -07:00
Christian Huffman
c6fd25d100
Updated CSIDriver references
2020-03-06 08:21:26 -05:00
sunxiaofei03
330159c0a4
fix orphaned pod flexvolume can not be cleaned up
2020-01-11 14:54:48 +08:00
Travis Rhoden
0c5c3d8bb9
Remove pkg/util/mount (moved out of tree)
...
This patch removes pkg/util/mount completely, and replaces it with the
mount package now located at k8s.io/utils/mount. The code found at
k8s.io/utils/mount was moved there from pkg/util/mount, so the code is
identical, just no longer in-tree to k/k.
2019-11-15 08:29:12 -07:00
Kubernetes Prow Robot
372ebd24f5
Merge pull request #83098 from ddebroy/disable-intree
...
CSI Migration phase 2: disable probing of in-tree plugins
2019-11-14 20:51:42 -08:00
Deep Debroy
129f15328b
Disable in-tree plugins migrated to CSI
...
Signed-off-by: Deep Debroy <ddebroy@docker.com >
2019-11-14 17:28:21 -08:00
Travis Rhoden
367f879131
Retire mount.Exec for k8s.io/utils/exec
...
This patch removes mount.Exec entirely and instead uses the common
utility from k8s.io/utils/exec.
The fake exec implementation found in k8s.io/utils/exec differs a bit
than mount.Exec, with the ability to pre-script expected calls to
Command.CombinedOutput(), so tests that previously relied on a callback
mechanism to produce specific output have been updated to use that
mechanism.
2019-11-13 14:09:57 -07:00
Michelle Au
fb6dfeb718
Convert attach-detach controller to use v1.CSINode
2019-10-28 13:41:13 -07:00