David Zhu
21f7060c8f
Plumb test state through to fake volume host creation for error handling
2019-11-18 14:45:01 -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
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
Travis Rhoden
1fd8921546
Move mount/fake.go to mount/fake_mount.go
...
This patch moves fake.go to mount_fake.go, and follows to principle of
always returning a discrete type rather than an Interface. All callers
of "FakeMounter" are changed to instead use "NewFakeMounter()". The
FakeMounter "Log" struct member is changed to not be exported, and
instead only access through a new "GetLog()" method.
2019-11-08 08:07:41 -07:00
Robert Krawitz
5b97b2860d
Change fsGroup to mounterArgs in volume.SetUp() to allow for future extension.
2019-05-29 15:12:28 -04:00
Christoph Blecker
97b2992dc1
Update gofmt for go1.11
2018-10-05 12:59:38 -07:00
jianglingxia
d759c601b6
FIX the os.Stat() func in volume file/kind bug
2018-02-24 19:31:21 +08:00
Di Xu
48388fec7e
fix all the typos across the project
2018-02-11 11:04:14 +08:00
linyouchong
e92f6eb0fe
fix incorrect logic in canSupport
2018-02-09 11:45:15 +08:00
Mitsuhiro Tanino
a6d979dd88
Block volumes Support: iSCSI plugin update
...
This patch adds block volume support to iSCSI volume plugin.
2018-01-10 11:38:36 -05:00
Huamin Chen
bb34a0b7ef
use SecretObject to reference iSCSI CHAP secret
...
Signed-off-by: Huamin Chen <hchen@redhat.com>
2017-11-18 20:02:44 +00:00
linyouchong
02e8ffe13c
fix incorrect log
2017-10-26 01:40:24 +08:00
linyouchong
66d68d7d2a
Abstract contains func to common place
2017-10-20 19:27:55 +08:00
mtanino
e21b68b4ca
Support iscsi volume attach and detach
...
Fixes #48953
2017-08-26 17:23:47 -04:00
Cheng Xing
396c3c7c6f
Adding dynamic Flexvolume plugin discovery capability, using filesystem watch.
2017-08-25 11:42:32 -07:00
xiangpengzhao
35b45d60b2
Use Fatalf instead of Errorf when mounter/unmounter if nil in volume tests
2017-08-23 10:29:30 +08:00
Jan Safranek
0e547bae22
SafeFormatAndMount should use volume.Exec provided by VolumeHost
...
We need to execute mkfs / fsck where the utilities are.
2017-08-14 12:16:27 +02:00
Jacob Simpson
29c1b81d4c
Scripted migration from clientset_generated to client-go.
2017-07-17 15:05:37 -07:00
Chao Xu
60604f8818
run hack/update-all
2017-06-22 11:31:03 -07:00
Chao Xu
f4989a45a5
run root-rewrite-v1-..., compile
2017-06-22 10:25:57 -07:00
Huamin Chen
9298217126
Add iSCSI CHAP authentication
...
Signed-off-by: Huamin Chen <hchen@redhat.com>
2017-04-07 16:38:29 +00:00
deads2k
5a8f075197
move authoritative client-go utils out of pkg
2017-01-24 08:59:18 -05:00
deads2k
ee6752ef20
find and replace
2017-01-20 08:04:53 -05:00
Clayton Coleman
9a2a50cda7
refactor: use metav1.ObjectMeta in other types
2017-01-17 16:17:19 -05:00
deads2k
6a4d5cd7cc
start the apimachinery repo
2017-01-11 09:09:48 -05:00
Chao Xu
03d8820edc
rename /release_1_5 to /clientset
2016-12-14 12:39:48 -08:00
Chao Xu
bb675d395f
dependencies: pkg/volume
2016-11-23 15:53:09 -08:00
Paul Morie
4722cb299b
Remove GetRootContext from VolumeHost
2016-11-03 12:21:19 -04:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
saadali
542f2dc708
Introduce new kubelet volume manager
...
This commit adds a new volume manager in kubelet that synchronizes
volume mount/unmount (and attach/detach, if attach/detach controller
is not enabled).
This eliminates the race conditions between the pod creation loop
and the orphaned volumes loops. It also removes the unmount/detach
from the `syncPod()` path so volume clean up never blocks the
`syncPod` loop.
2016-06-15 09:34:08 -07:00
saadali
79012f6d53
Rename volume.Builder to Mounter and volume.Cleaner to Unmounter
2016-03-25 11:29:58 -07:00
Tim St. Clair
246b389275
Move test-only volume files to test-only volume package
2016-02-29 14:44:28 -08:00
Chao Xu
ad46715f51
generate fake client for release_1_2
2016-02-17 16:10:02 -08:00
Chao Xu
c72d234bbf
replacing handwritten client in several controllers
2016-01-31 15:42:02 -08:00
Fabio Yeon
7205a160ac
Remove all instances of "/tmp" from unit tests and replace with a common
...
tmp directory creator. Exception is documented.
2016-01-27 16:11:22 -08:00
k8s-merge-robot
3f5e417999
Merge pull request #19502 from swagiaal/internalize-ownership
...
Auto commit by PR queue bot
2016-01-26 23:06:39 -08:00
Clayton Coleman
33085c0cf2
Update tests to handle codec changes
2016-01-22 13:27:26 -05:00
Sami Wagiaalla
f650648aae
Add fsGroup to SetUp and SetUpAt
2016-01-13 10:37:10 -05:00
Paul Morie
911757486d
Refactor volume.Builder.IsReadOnly() to volume.Builder.GetAttributes()
2015-11-13 23:34:48 -05:00
Huamin Chen
76df88f68b
iscsi: make portal builder testable
...
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-10-14 13:30:30 -04:00
Filip Grzadkowski
7fe34f2050
Introduce nsenter writer for volume plugins
2015-09-17 16:40:29 +02:00
Chao Xu
64bf839e9f
refactor tests to use testapi rather than latest directly
2015-09-11 17:32:23 -07:00
Chao Xu
dd6c121d7f
massive changes
2015-09-11 17:31:47 -07:00
markturansky
0e7f73ad67
expand volume.Spec to include full Volume and PV
2015-09-03 08:57:32 -04:00
deads2k
7e180c258d
update testclient for delegating reaction chain
2015-09-01 12:58:35 -04:00
Kris Rousey
ae6c64d9bb
Moving everyone to unversioned client
2015-08-18 10:23:03 -07:00
Kris Rousey
565189f5b8
Correcting all go vet errors
2015-08-11 13:55:37 -07:00
Mike Danese
8e33cbfa28
rewrite go imports
2015-08-05 17:30:03 -07:00
markturansky
63ccfa2beb
Added unit tests for each PV using IsReadOnly
2015-07-29 14:38:40 -04:00
jiangyaoguo
ce52ae782d
refector iscsi volume to seperate builder and cleaner
2015-07-24 16:55:56 +08:00