Matthieu MOREL
f736cca0e5
fix: enable expected-actual rule from testifylint in module k8s.io/kubernetes
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-09-27 07:56:31 +02:00
Abhishek Kr Srivastav
95860cff1c
Fix Go vet errors for master golang
...
Co-authored-by: Rajalakshmi-Girish <rajalakshmi.girish1@ibm.com >
Co-authored-by: Abhishek Kr Srivastav <Abhishek.kr.srivastav@ibm.com >
2024-09-20 12:36:38 +05:30
Kubernetes Prow Robot
113b12c6fb
Merge pull request #124439 from bells17/csi-translation-lib-structured-and-contextual-logging
...
Migrate k8s.io/csi-translation-lib/.* to structured logging
2024-08-19 18:13:54 -07:00
Hemant Kumar
26798d24c2
Fix linter hints etc
2024-08-14 12:54:40 -04:00
Hemant Kumar
97eddc8f65
commiting uncommited changes on 2024-08-14 12:46:00 -0400
2024-08-14 12:46:00 -04:00
Hemant Kumar
99fc7cc7b1
Use new size returned by nodeExpander for recording in ASOW
2024-08-14 09:24:53 -04:00
Hemant Kumar
de5e4963c1
Use allocatedResources as new size for finishing volume expansion
...
on the node.
Also add new tests for node only expansion modes
2024-08-14 09:24:48 -04:00
carlory
c4851c64a0
remove volumeoptions from VolumePlugin and BlockVolumePlugin
2024-07-24 14:07:02 +08:00
Hemant Kumar
f7f1a6c81a
Address review comments and return nicer errors
2024-07-22 10:43:38 -04:00
bells17
1298c8a5fe
csi-translation-lib: Support structured and contextual logging
2024-07-18 14:01:27 +09:00
Hemant Kumar
b3db0ba04c
Fix error about missing volumeSpec for expansion during mount
2024-07-16 12:07:46 -04:00
Hemant Kumar
099cb71a53
Ensure that all options are correctly set when calling node-expand-during-mount
2024-07-16 10:04:19 -04:00
Hemant Kumar
785e68a626
Add code for testing final errors
2024-07-15 15:41:31 -04:00
Hemant Kumar
cbda088905
Add functions for storing volume as failed with final error
2024-07-12 15:14:46 -04:00
Hemant Kumar
7a51999ddf
Deprecate intree Volume Expansion controller
2024-07-12 14:42:04 -04:00
Hemant Kumar
ad28dfb42e
Fix code that uses old values for resize errors
2024-07-12 14:37:35 -04:00
Hemant Kumar
49e82fd120
Rename ReizeFailed conditions to ResizeInfeasible
2024-07-10 12:02:54 -04:00
carlory
21baa25e1a
remove BulkVolumeVerifier interface from volume
2024-05-14 14:17:25 +08:00
Marek Siarkowicz
3ee8178768
Cleanup defer from SetFeatureGateDuringTest function call
2024-04-24 20:25:29 +02:00
Jan Safranek
d7028a8ed5
Add SELinuxMount feature gate
...
The feature gate enables mounting with -o context=XYZ mount option for all
volume types, not only ReadWriteOncePod.
All SELinux label tracking & error reporting infrastructure is already in
place from SELinuxMountReadWriteOncePod feature gate. This is just a
trivial extension to all access modes.
2024-02-20 15:40:21 +01:00
Kubernetes Prow Robot
2c5105e7b8
Merge pull request #123032 from carlory/fix-122960
...
fix GenerateUnmapVolumeFunc missing globalUnmapPath
2024-02-02 05:39:03 -08:00
Hemant Kumar
d190fa3e7d
Fix race condition between external-resizer and kubelet
...
This fixes the race condition that could happen because
resize controller just finished volume expansiona and has only
finished marking PV and yet to mark PVC.
The workaround proposed here should not be necessary once
RecoverVolumeExpansionFailure goes GA/beta.
2024-01-31 12:23:56 -05:00
carlory
77fed9d2b7
fix GenerateUnmapVolumeFunc missing globalUnmapPath when kubelet tries to clean up all volumes that failed reconstruction.
2024-01-30 17:29:54 +08:00
Kubernetes Prow Robot
d250588077
Merge pull request #121825 from carlory/clean-113
...
remove duplicated check in operator_generator.go
2024-01-05 16:52:13 +01:00
carlory
5607349e39
remove wrong warning event (FileSystemResizeFailed) during a pod creation when it uses a readonly volume.
2023-12-28 17:49:02 +08:00
Hemant Kumar
e706b6ba14
Use a separate function for checking if device was reconstructed
2023-12-14 11:37:47 -05:00
Hemant Kumar
56dd5ab10f
Add tests for checking of uncertain device paths
2023-12-11 17:15:16 -05:00
Hemant Kumar
ed0facacfa
Fix device uncertain errors on reboot
2023-12-06 22:19:14 -05:00
carlory
407b9d9610
remove duplicated check in operator_generator.go
2023-11-09 15:38:49 +08:00
Chris Henzie
2dbd405583
Graduate ReadWriteOncePod to GA
2023-10-20 10:40:39 -07:00
Jan Safranek
7fc11f47ff
Mark a volume as uncertain-attached after detach error
...
Volume that failed Detach() should not be marked as attached, CSI
external-attacher is probably still trying to detach it.
Mark it uncertain instead and wait for Detach() to succeed.
2023-09-13 10:03:28 +02:00
Patrick Ohly
2472291790
api: introduce separate VolumeResourceRequirements struct
...
PVC and containers shared the same ResourceRequirements struct to define their
API. When resource claims were added, that struct got extended, which
accidentally also changed the PVC API. To avoid such a mistake from happening
again, PVC now uses its own VolumeResourceRequirements struct.
The `Claims` field gets removed because risk of breaking someone is low:
theoretically, YAML files which have a claims field for volumes now
get rejected when validating against the OpenAPI. Such files
have never made sense and should be fixed.
Code that uses the struct definitions needs to be updated.
2023-08-21 15:31:28 +02:00
Hemant Kumar
e011187114
Update code to use new generic allocatedResourceStatus field
2023-07-17 15:30:35 -04:00
cyclinder
8e4228a8c1
remove CSI-migration gate
2023-06-04 18:40:17 +08:00
Kubernetes Prow Robot
4893c66a48
Merge pull request #116134 from cvvz/fix-111933
...
fix: After a Node is down and take some time to get back to up again, the mount point of the evicted Pods cannot be cleaned up successfully.
2023-04-11 15:35:41 -07: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
weizhichen
a6ffbb41f8
Squashed commit of the following:
...
commit 1b3ae27e7af577372d5aaaf28ea401eb33d1c4df
Author: weizhichen <weizhichen@microsoft.com >
Date: Thu Mar 9 08:39:04 2023 +0000
fix
commit 566e139308e3cec4c9d4765eb4ccc3a735346c2e
Author: weizhichen <weizhichen@microsoft.com >
Date: Thu Mar 9 08:36:32 2023 +0000
fix unit test
commit 13a58ebd25b824dcf854a132e9ac474c8296f0bf
Author: weizhichen <weizhichen@microsoft.com >
Date: Thu Mar 2 03:32:39 2023 +0000
add unit test
commit c984e36e37c41bbef8aec46fe3fe81ab1c6a2521
Author: weizhichen <weizhichen@microsoft.com >
Date: Tue Feb 28 15:25:56 2023 +0000
fix imports
commit 58ec617e0ff1fbd209ca0af3237017679c3c0ad7
Author: weizhichen <weizhichen@microsoft.com >
Date: Tue Feb 28 15:24:21 2023 +0000
delete CheckVolumeExistenceOperation
commit 0d8cf0caa78bdf1f1f84ce011c4cc0e0de0e8707
Author: weizhichen <weizhichen@microsoft.com >
Date: Tue Feb 28 14:29:37 2023 +0000
fix 111933
2023-03-09 09:53:38 +00:00
torredil
6aebda9b1e
Remove AWS legacy cloud provider + EBS in-tree storage plugin
...
Signed-off-by: torredil <torredil@amazon.com >
2023-03-06 14:01:15 +00:00
Kubernetes Prow Robot
f9a3fd2810
Merge pull request #115346 from gnufied/set-staging-path-expansion
...
Set node_stage_path whenever available
2023-01-30 21:38:47 -08:00
Kubernetes Prow Robot
ad2a9f2f33
Merge pull request #113863 from msau42/owners
...
update sig-storage owners
2023-01-30 10:10:50 -08:00
Hemant Kumar
f052ea3ec3
Set node_stage whenever available
2023-01-26 15:27:20 -05:00
Hemant Kumar
402fe4ec9b
use expansion without recovery if allocatedResource is not unset
2023-01-26 14:25:00 -05:00
Michelle Au
524a8b32a6
add sig-storage reviewers, remove inactive sig-storage reviewers, remove redundant owners files
2022-11-15 23:51:57 +00: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
Humble Chirammal
f22a74aa6a
various corrections in pkg/volume
...
Signed-off-by: Humble Chirammal <hchiramm@redhat.com >
2022-09-16 16:42:06 +05:30
Akanksha Kumari
86fa479273
Call SetupDevice only if Volume is not globally Mounted
2022-09-12 23:00:00 +05:30
Kubernetes Prow Robot
71e534c580
Merge pull request #111527 from mengjiao-liu/clean-prometheus-in-volume
...
Cleanup: remove prometheus dependencies for volume
2022-08-23 16:05:31 -07:00
Kubernetes Prow Robot
11d4cb52f2
Merge pull request #111693 from kinvolk/rata/userns-support-2022
...
volume: FeatureGate access to GetHostIDsForPod()
2022-08-05 09:37:48 -07:00