Commit Graph

3705 Commits

Author SHA1 Message Date
Taahir Ahmed
1ebe5774d0 kubelet: Support ClusterTrustBundlePEM projections 2023-11-03 11:40:48 -07:00
Humble Chirammal
3890546265 Update APIs and adjust tests
Signed-off-by: zhucan <zhucan.k8s@gmail.com>
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-11-01 09:28:36 +05:30
carlory
ae90a69677 volumeattributesclass and core api changes 2023-10-31 11:18:56 +08:00
Kubernetes Prow Robot
0501933e56
Merge pull request #121291 from bzsuni/ga/CSIMigrationvSphere
Remove GA featuregate about CSIMigrationvSphere in 1.29
2023-10-26 01:08:06 +02:00
Chris Henzie
2dbd405583 Graduate ReadWriteOncePod to GA 2023-10-20 10:40:39 -07:00
Kubernetes Prow Robot
7824ac0f3e
Merge pull request #114336 from claudiubelu/fixes-test-get-file-type
unittests: Fixes hostutil.GetFileType for Windows
2023-10-17 20:07:39 +02:00
bzsuni
7561284819 Remove GA featuregate about CSIMigrationvSphere in 1.29
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2023-10-17 20:44:50 +08:00
Kubernetes Prow Robot
d3559bf77f
Merge pull request #120595 from jsafrane/fix-detach-uncertain
Mark a volume as uncertain-attached after detach error
2023-10-08 05:54:01 +02:00
Akanksha Panse
38935b787e Do not fail volume attach operation at kubelet if staging target path already exists on windows worker node. 2023-10-03 13:08:14 +05:30
Kubernetes Prow Robot
12dc19d46f
Merge pull request #119393 from saschagrunert/debian-base
Update debian-base for test images and others
2023-09-19 00:48:55 -07:00
Kubernetes Prow Robot
f9f00da6bc
Merge pull request #118761 from TommyStarK/gh_113831
move common logic of highestSupportedVersion to util package
2023-09-18 13:59:25 -07:00
TommyStarK
42356bfbb3
move common logic of highestSupportedVersion to util package
Signed-off-by: TommyStarK <thomasmilox@gmail.com>
2023-09-18 21:25:29 +02: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
Rohit Singh
61ecc2ad88 Retry operations if CSI Driver Isn't Found by Treating this Error as Transient 2023-09-11 06:07:40 +00:00
Kubernetes Prow Robot
42357dd257
Merge pull request #120128 from ritazh/format-mount
Use environment variables for parameters in Powershell
2023-08-23 10:40:01 -07:00
James Sturtevant
2bede058f9
Use environment varaibles for parameters in Powershell
As a defense in depth, pass parameters to powershell via environment variables.

Signed-off-by: James Sturtevant <jstur@microsoft.com>
2023-08-23 05:57:46 -07:00
James Sturtevant
c761c16562
Use env varaibles for passing path
The subpath could be passed a powershell subexpression which would be executed by kubelet with privilege.  Switching to pass the arguments via environment variables means the subexpression won't be evaluated.

Signed-off-by: James Sturtevant <jstur@microsoft.com>
2023-08-23 05:57:11 -07:00
Kubernetes Prow Robot
9aba98ad71
Merge pull request #119948 from liyuerich/storageclass
add UT for storageclass
2023-08-22 10:03:06 -07: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
liyuerich
a6a1f070e7 Signed-off-by: liyuerich <yue.li@daocloud.io>
add UT for storageclass
2023-08-18 22:18:11 +08:00
Sascha Grunert
a35608cc61
Update debian-base for test images and others
Bump all users of debian-base to the latest bookworm image.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2023-07-18 16:39:03 +02:00
Hemant Kumar
2e217e8cea Reduce duplication between helpers for checking featuregate 2023-07-17 15:34:45 -04:00
Hemant Kumar
f01a1faa8c Update comments about allocatedResourceStatus
Update API types with more comments
2023-07-17 15:30:36 -04:00
Hemant Kumar
e011187114 Update code to use new generic allocatedResourceStatus field 2023-07-17 15:30:35 -04:00
Kubernetes Prow Robot
52457842d1
Merge pull request #117055 from cyclinder/csi_migration
remove CSI-migration gate
2023-06-28 04:28:31 -07:00
Kubernetes Prow Robot
1d25ce8beb
Merge pull request #118392 from testwill/emptydir
chore: io/ioutil deprecated
2023-06-26 20:04:31 -07:00
Kubernetes Prow Robot
a48bcc06fe
Merge pull request #117064 from RomanBednar/multiple-defaults
storage class assignment should not ignore errors
2023-06-23 03:09:23 -07:00
Stephen Kitt
ab75e48494
storage: stop using deprecated io/ioutil
This replaces deprecated ioutil variables and functions as follows:

* ioutil.ReadDir -> os.ReadDir
* ioutil.ReadFile -> os.ReadFile
* ioutil.TempDir -> os.MkdirTemp
* ioutil.TempFile -> os.CreateTemp
* ioutil.WriteFile -> os.WriteFile

The ReadDir conversion involves an API change, the replacement
function returns a slice of fs.DirEntry instead of fs.FileInfo.
Where appropriate, the surrounding code has been adjusted; mostly,
that means using DirEntry.Type() instead of FileInfo.Mode().
Applying this change to the IoUtil interface would mean changing its
API, so this is left for later.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2023-06-20 16:49:03 +02:00
Kubernetes Prow Robot
bfd833baf3
Merge pull request #115982 from peaaceChoi/master
Update toplogy keyset initialization
2023-06-19 04:04:21 -07:00
carlory
5e048041e4 remove helper function for unused storage feature in pkg/proxy/util 2023-06-13 09:22:59 +08:00
cyclinder
8e4228a8c1 remove CSI-migration gate 2023-06-04 18:40:17 +08:00
guoguangwu
70ff750c75 chore: io/ioutil deprecated 2023-06-02 13:10:38 +08:00
Andy Zhang
1ce285ad3d
Revert "removed the deprecated azureFile in-tree storage plugin" 2023-06-02 10:20:53 +08:00
Claudiu Belu
b4d1440063 unittests: Fixes hostutil.GetFileType for Windows
GetFileType is meant to return the type of the given file by using os.Stat.
However, os.Stat doesn't work on Windows for Unix Sockets, causing an error to occur:

[2-Socket Test] unexpected error :
CreateFile C:\Users\Administrator\AppData\Local\Temp\test-get-filetype-2776877299\mt.sock:
The file cannot be accessed by the system.

This is a known issue and we're already using a workaround for this in
pkg/kubelet/util/util_windows.go.

This commit fixes this issue for GetFileType on Windows.
2023-06-01 16:02:07 +00:00
Kubernetes Prow Robot
a6f641b656
Merge pull request #118236 from andyzhangx/remove-azurefile
removed the deprecated `azureFile` in-tree storage plugin
2023-05-29 09:25:54 -07: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
Kubernetes Prow Robot
719c9fe3f9
Merge pull request #118177 from HirazawaUi/fix-git-repo-test
Fix the git-repo test error caused by the correct use of loop variables
2023-05-26 08:55:04 -07:00
HirazawaUi
510287d344 Fix the git-repo test error caused by the correct use of loop variables 2023-05-26 21:32:36 +08:00
Kubernetes Prow Robot
bcb3d87117
Merge pull request #118070 from carlory/patch-001
legacy names of volume plugins have been gone a LONG time
2023-05-24 20:37:01 -07:00
andyzhangx
485d1631cd Remove Azure file in-tree storage plugin 2023-05-24 14:10:34 +00:00
Kubernetes Prow Robot
189fe3f3e6
Merge pull request #114806 from qingwave/fix-volume-util
fix typo in volume util
2023-05-18 08:32:34 -07:00
carlory
666be79d67 legacy names of volume plugins have been gone a LONG time 2023-05-17 17:02:44 +08:00
Kubernetes Prow Robot
76552fac38
Merge pull request #114764 from claudiubelu/unittests-7
unittests: Fixes unit tests for Windows (part 7)
2023-05-08 11:52:51 -07:00
Claudiu Belu
d3237b7258 unittests: Fixes unit tests for Windows (part 7)
Currently, there are some unit tests that are failing on Windows due to
various reasons:

- if a powershell command that could return an array (e.g.: Get-Disk) would return an array of
  only one element, powershell will in fact return that object directly, and **not** an array
  containing that element. In a few cases, these commands are used and their output is converted
  to json, after which they're unmarshalled in golang, with the expectation that the unmarshalled
  data to be an array. If it's not an array, we get an error.
- when mounting Block Devices, Windows expects the given source to be a Disk Number, not a path.
- for rbd_windows_test.go, we should start with Disk Number 0, which exists on all hosts.
- if a Disk has multiple volumes, Get-Volume doesn't return the volumes in the same order. This
  can result in various assertions failing.
- the pkg/volume/rbd/rdb_test.TestPlugin test expects that mounter.MountSensitive is called when
  attacher.MountDevice is called. The Windows attacher doesn't currently make that call.
2023-05-08 10:53:39 +00:00
Kubernetes Prow Robot
1f0e718585
Merge pull request #117077 from pacoxu/fsquota-cleanup
skip clear quota if FSQuotaMonitoring is disabled
2023-04-18 02:36:57 -07: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
347480b0c6
Merge pull request #117099 from UiPath/fix-qos-limit
kubelet: fix setup of emptyDir with sizeLimit (fsquota)
2023-04-11 20:21:10 -07:00
Kubernetes Prow Robot
8722ab2c84
Merge pull request #117022 from mpatlasov/fix-dir-mismatch-for-SetVolumeOwnership
Fix directory mismatch for `volume.SetVolumeOwnership()`
2023-04-11 19:18:23 -07:00
Kubernetes Prow Robot
de109979a1
Merge pull request #116138 from cvvz/fix-114207
fix: the volume is not detached after the pod and PVC objects are deleted
2023-04-11 15:35:48 -07: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