Travis Rhoden
935c23f2ad
Move HostUtil to pkg/volume/util/hostutil
...
This patch moves the HostUtil functionality from the util/mount package
to the volume/util/hostutil package.
All `*NewHostUtil*` calls are changed to return concrete types instead
of interfaces.
All callers are changed to use the `*NewHostUtil*` methods instead of
directly instantiating the concrete types.
2019-08-30 10:14:42 -06:00
Kubernetes Prow Robot
f105fef3d5
Merge pull request #81429 from huffmanca/resize_block_volume
...
Enables resizing of block volumes.
2019-08-23 17:59:05 -07:00
Christian Huffman
7a4cdf5ab2
Included resizing for CSI-based block volumes.
...
Perform a no-op when volume is of type raw block
Fix bug with checking volume mounts for readonly
2019-08-22 15:45:57 -04:00
Travis Rhoden
a7830a2c6e
mv HasMountRefs from mount pkg to vol/util
...
HasMountRefs is only used internal to K8s and should not be moved out
with the mount package. move it to pkg/volume/util instead.
2019-08-21 14:53:34 -06:00
David Zhu
290a7f12ce
Add migration shim for VerifyVolumesAreAttached and BulkVolumeVerify
2019-07-23 12:57:47 -07:00
David Zhu
93d6356d2f
Fixes mount/unmount paths for migrated inline volumes. Some minor fixes for GCE specific inline migrated volumes
2019-07-11 11:51:43 -07:00
Travis Rhoden
be7da5052f
Refactor pkg/util/mount to be more reusable
...
This patch refactors pkg/util/mount to be more usable outside of
Kubernetes. This is done by refactoring mount.Interface to only contain
methods that are not K8s specific. Methods that are not relevant to
basic mount activities but still have OS-specific implementations are
now found in a mount.HostUtils interface.
2019-06-14 09:35:18 -06:00
Kubernetes Prow Robot
518f16636f
Merge pull request #78593 from RobertKrawitz/ephemeral-storage-quota-cleanup
...
Ephemeral storage quota cleanup
2019-06-14 05:33:18 -07:00
Kubernetes Prow Robot
333081e79c
Merge pull request #78595 from gnufied/fix-aws-dangling-volumes
...
Add dangling volume as uncertain
2019-06-06 16:47:59 -07:00
Hemant Kumar
7bcebe98bb
Add dangling volume as uncertain
2019-06-06 15:25:10 -04:00
Hemant Kumar
0f62e3fbe8
Make language of error msgs and func names consistent: ExpandVolumeInUse
...
change feature flag
Fix the e2e test for online and offline expansion
2019-06-03 12:26:56 -04:00
Kubernetes Prow Robot
b7fa33ec15
Merge pull request #77703 from ddebroy/inline-mig-1
...
API changes to support migration of inline in-tree volumes to CSI
2019-05-31 12:23:19 -07:00
Robert Krawitz
bf1f0fa5d9
Remove pod UID from volumeMount, we can get it elsewhere
2019-05-31 14:25:01 -04:00
Kubernetes Prow Robot
cf76868b34
Merge pull request #66928 from RobertKrawitz/ephemeral-storage-quota-exp
...
Ephemeral storage monitoring via filesystem quotas
2019-05-30 20:44:26 -07:00
Deep Debroy
de7be9d613
Populate InlineVolumeSpec in CSI attacher and translation library
...
Signed-off-by: Deep Debroy <ddebroy@docker.com>
2019-05-30 09:35:22 +00:00
Robert Krawitz
448e0c44c6
Apply quotas via syscalls using cgo.
2019-05-29 15:12:28 -04:00
Robert Krawitz
5b97b2860d
Change fsGroup to mounterArgs in volume.SetUp() to allow for future extension.
2019-05-29 15:12:28 -04:00
Hemant Kumar
7563b4d01b
Address comments about retry in online resizing block
2019-05-29 11:01:45 -04:00
Hemant Kumar
33b95ebddb
add some tests for expand controller
...
Update bazel file
2019-05-20 10:55:23 -04:00
Matthew Wong
c16a555654
Use workqueue model in expand controller
...
Add a test for patch creation
2019-05-14 16:42:06 -04:00
Kubernetes Prow Robot
9e52832c52
Merge pull request #77317 from gnufied/fix-block-volume-resizing
...
Fix block volume expansion
2019-05-01 20:42:56 -07:00
Kubernetes Prow Robot
b5c34d0c43
Merge pull request #74734 from codenrhoden/move-mountspath
...
Move MountsInGlobalPDPath from mount pkg to volume
2019-05-01 17:28:18 -07:00
Hemant Kumar
0eb68c5a22
Fix blockvolume expansion
2019-05-01 18:25:54 -04:00
David Zhu
1271237d23
Add migration metrics checking to all test suites
2019-05-01 11:24:03 -07:00
Travis Rhoden
78d109e201
Always use filepath.Join instead of path.Join
...
This patch cleans up pkg/util/mount/* and pkg/util/volume/* to always
use filepath.Join instead of path.Join. filepath.Join is preferred
because path.Join can have issues on Windows.
2019-04-29 09:56:05 -06:00
David Zhu
213cc99ead
Operation generator migration metric fixes and test metrics retrieval code
2019-04-25 16:27:45 -07:00
Kubernetes Prow Robot
88992ba185
Merge pull request #75986 from mucahitkurt/improvement/reduce-event-spam-for-GenerateAttachVolumeFunc
...
Reduce event spam for function GenerateAttachVolumeFunc
2019-04-24 18:12:44 -07:00
Mucahit Kurt
1c1da755dc
reduce event spam for function GenerateAttachVolumeFunc
...
Signed-off-by: Mucahit Kurt <mucahitkurt@gmail.com>
2019-04-24 23:45:28 +03:00
Kubernetes Prow Robot
7e02769736
Merge pull request #75926 from cwdsuzhou/operation_generator_add_attach_detach
...
Add operation name for other volume operations
2019-04-18 00:26:08 -07:00
caiweidong
7c9e567008
add operation name for other volume operations
2019-04-12 11:09:13 +08:00
Kubernetes Prow Robot
b1829dff0b
Merge pull request #74844 from leakingtapan/migration-raw-block
...
Implement CSI migration logic for block volume
2019-03-28 18:12:14 -07:00
Cheng Pan
f7050a04ce
Implement CSI migration logic for block volume
2019-03-26 22:22:03 +00:00
Hemant Kumar
97ec61561a
Allow different operation names
2019-03-13 14:20:45 -04:00
Hemant Kumar
a8f318779b
Add CSI volume resizing tests
...
Add some tests for checking node expansion
Add new tests for expander
2019-03-08 09:23:18 -05:00
Hemant Kumar
529cd7119b
Move resize function parameters to a new ResizeOptions type
...
This enables us to pass CSI volume phase
2019-03-08 09:21:44 -05:00
Hemant Kumar
89d1de9eb9
Rename ExandFS to NodeExpand
...
Handle resize error in online resizing
Use NodeExpandable plugin to mark volumes that require node expansion
2019-03-08 09:21:44 -05:00
David Zhu
41b3579345
Address review comments
2019-03-07 17:17:09 -08:00
David Zhu
7d2f4e97b8
Add ADC Fallback if Node doesn't have driver installed
2019-03-07 14:47:38 -08:00
Deep Debroy
1fb4290c4e
Update API names and references
...
Signed-off-by: Deep Debroy <ddebroy@docker.com>
2019-03-04 19:13:05 -08:00
Kubernetes Prow Robot
84dce4d119
Merge pull request #74393 from codenrhoden/refactor-subpath
...
Refactor subpath out of pkg/util/mount
2019-02-27 15:54:36 -08:00
Travis Rhoden
2c4d748bed
Refactor subpath out of pkg/util/mount
...
This patch moves subpath functionality out of pkg/util/mount and into a
new package pkg/volume/util/subpath. NSEnter funtionality is maintained.
2019-02-26 19:59:53 -07:00
David Zhu
b0b6fd035a
Add feature gate check for migration at beginning of useCSIPlugin check
2019-02-26 11:47:20 -08:00
Yecheng Fu
618917e210
VolumeSpec may be nil in volume reconstruction scenario
2019-02-25 13:52:21 +08:00
Cheng Pan
6355186c3e
Add In-tree to CSI migration logic for Mount and Unmount
2019-02-18 04:55:31 +00:00
Kubernetes Prow Robot
60943a7a08
Merge pull request #69830 from davidz627/feature/csiTranslationMigration
...
In-Tree to CSI Migration logic for PersistentVolume Attach/Detach
2019-02-14 22:43:05 -08:00
David Zhu
5dde1df1cd
Migration shim logic for Persistent Volumes for Attach/Detach
2019-02-14 17:04:23 -08:00
Andrew Kim
ca6a051b00
remove cloud provider dependencies to pkg/volume
...
Co-authored-by: Weibin Lin <linweibin1@huawei.com>
2019-02-09 01:16:55 -05:00
qingsenLi
4b25a4fd93
fix some typos in /pkg/volume
2019-01-28 23:17:48 +08:00
Kubernetes Prow Robot
54c4428eb4
Merge pull request #71276 from jingxu97/Oct/uncertain
...
Handle failed attach operation leave uncertain volume attach state
2019-01-17 22:52:57 -08:00
David Zhu
384fce6bb1
Common Migration shim functaionality and flags
2019-01-17 14:43:59 -08:00