Sami Wagiaalla
4858d0ab6f
Detangle Attach/Detach from GCE PD
2016-05-22 08:28:29 -04:00
Jan Safranek
75b0e2ad63
provisioning: Refactor volume plugins.
...
NewPersistentVolumeTemplate() and Provision() are merged into one call.
2016-05-18 10:06:51 +02:00
Sami Wagiaalla
d1aacfc059
Move getCloudProvider retries to getCloudProvider()
2016-05-04 16:43:38 -04:00
Clayton Coleman
fdb110c859
Fix the rest of the code
2016-04-29 17:12:10 -04:00
saadali
e7b14e721a
Ensure volume GetCloudProvider code uses cloud config
2016-04-04 10:59:13 -07:00
k8s-merge-robot
2205a30348
Merge pull request #23368 from saad-ali/renameBuilderCleaner
...
Auto commit by PR queue bot
2016-03-26 13:01:25 -07:00
goltermann
32d569d6c7
Fixing all the "composite literal uses unkeyed fields" Vet errors.
2016-03-25 15:25:09 -07:00
saadali
79012f6d53
Rename volume.Builder to Mounter and volume.Cleaner to Unmounter
2016-03-25 11:29:58 -07:00
Tim Hockin
23fe2a3584
add maintainers for each volume driver
2016-03-22 22:19:53 -07:00
Justin Santa Barbara
c771bf43c4
Ubernetes Lite: apply auto-labels to dynamically provisioned volumes
...
Fix #22532
2016-03-09 15:17:45 -05:00
Tim St. Clair
246b389275
Move test-only volume files to test-only volume package
2016-02-29 14:44:28 -08:00
Jan Safranek
a304e3478d
Hot-fix admission of volumes that are being provisioned.
...
This is a first-aid bandage to let admission controller ignore persistent
volumes that are being provisioned right now and thus may not exist in
external cloud infrastructure yet.
2016-02-23 09:46:40 +01:00
Chao Xu
ad46715f51
generate fake client for release_1_2
2016-02-17 16:10:02 -08:00
Jan Safranek
1d0b1c227b
Add PV.Name into names of generated GCE/AWS/OSP volumes.
...
Volume names have now format <cluster-name>-dynamic-<pv-name>.
pv-name is guaranteed to be unique in Kubernetes cluster, adding
<cluster-name> ensures we don't conflict with any running cluster
in the cloud project (kube-controller-manager --cluster-name=XXX).
'kubernetes' is the default cluster name.
2016-02-12 09:46:59 +01:00
k8s-merge-robot
fec0d127b3
Merge pull request #15938 from justinsb/aws_ebs_cleanup
...
Auto commit by PR queue bot
2016-02-08 21:42:52 -08:00
k8s-merge-robot
1b52e0ec3a
Merge pull request #20210 from jsafrane/devel/gce-tags
...
Auto commit by PR queue bot
2016-02-05 21:36:25 -08:00
Justin Santa Barbara
089951e7b4
Fix typo in comment: succefully -> successfully
2016-02-03 20:43:14 +00:00
harry
1032067ff9
Replace runtime reference by pkg
2016-02-01 21:06:44 +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
Jan Safranek
23cd0913f7
Tag dynamically created GCE PD disks.
...
GCE disks don't have tags, we must encode the tags into Description field.
It's encoded as JSON, which is both human and machine readable:
description: '{"kubernetes.io/created-for/pv/name":"pv-gce-oxwts","kubernetes.io/created-for/pvc/name":"myclaim","kubernetes.io/created-for/pvc/namespace":"default"}'
2016-01-27 15:16:05 +01: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
Justin Santa Barbara
43cbfb74fe
Ubernetes Lite GCE: Support multiple zones in GCE cloud provider
...
We adapt the existing code to work across all zones in a region.
We require a feature-flag to enable Ubernetes-Lite
Reasons:
* There are some behavioural changes if users create volumes with
the same name in two zones.
* We don't want to make one API call per zone if we're not running
Ubernetes-Lite.
* Ubernetes-Lite is still experimental.
There isn't a parallel flag implemented for AWS, because at the moment
there would be no behaviour changes from this.
2016-01-20 23:04:53 -05:00
harry
7405c7899b
Add strings pkg to hold strings utils
...
Replace funtions with strings pkg
Fix all references and rename the pkg
2016-01-15 12:37:50 +08:00
Sami Wagiaalla
7767698459
Remove SupportsOwnershipManagement volume attribute
2016-01-13 10:37:10 -05:00
Sami Wagiaalla
4ac151321a
Call SetVolumeOwnership from volume plugins
2016-01-13 10:37:10 -05:00
Sami Wagiaalla
f650648aae
Add fsGroup to SetUp and SetUpAt
2016-01-13 10:37:10 -05:00
Chakravarthy Nelluri
fa76de79e5
Add support for flex volume. Flex volume adds support for thirdparty(vendor)
...
volumes and custom mounts.
2015-12-23 14:11:38 -08:00
Jan Safranek
d4f6271b21
Implement Creater and Deleter interfaces for GCE PD.
2015-12-16 16:14:01 -05:00
Phillip Wittrock
c67ce887f2
Volume Metrics Interface and base implementation.
...
- Add volume.MetricsProvider function to Volume interface.
- Add volume.MetricsDu for providing metrics via executing "du".
- Add volulme.MetricsNil for unsupported Volumes.
2015-12-09 16:06:24 -08:00
k8s-merge-robot
13b0fd3cda
Merge pull request #16942 from swagiaal/distinguish-format-and-mount
...
Auto commit by PR queue bot
2015-12-03 10:51:26 -08:00
Sami Wagiaalla
66c905d63e
Distinguish normal mount from format and mount in SafeFormatAndMount
2015-12-02 11:16:00 -05:00
saadali
42b200a0a0
Refactor GCE wrapper library to allow execution from E2E test suite
...
This reverts commit 147b6911f5
, reversing
changes made to 6fd986065b
.
2015-11-25 11:48:06 -08:00
Jerzy Szczepkowski
8a922e22be
Revert "Refactor GCE wrapper library to allow execution from E2E test suite"
2015-11-23 09:24:32 +01:00
k8s-merge-robot
3fbf0cb810
Merge pull request #17276 from saad-ali/fixErrorCreatingPD
...
Auto commit by PR queue bot
2015-11-21 23:32:30 -08:00
saadali
882469dd7b
Refactor GCE wrapper library to allow execution from E2E test suite
2015-11-20 11:41:10 -08:00
Paul Morie
911757486d
Refactor volume.Builder.IsReadOnly() to volume.Builder.GetAttributes()
2015-11-13 23:34:48 -05:00
Sami Wagiaalla
1d352a16b8
Support volume relabling for pods which specify an SELinux label
2015-10-28 09:26:58 -04:00
Daniel Smith
b07dd73f26
Merge pull request #16053 from saad-ali/attachDetachMutextFix
...
Fix GCE Cloud/Attach/Detach stability issues
2015-10-26 13:05:27 -07:00
saadali
19115b2a22
Fix GCE Cloudprovider waitForOp bug and make GCE attach/detach atomic operations.
2015-10-23 11:58:56 -07:00
Paul Morie
3cd12f5e05
FSGroup implementation
2015-10-22 16:40:59 -04:00
Steve Milner
8da2d4002f
Fixes remaining imports per #15319
2015-10-20 07:13:13 -04:00
k8s-merge-robot
c4779fbc4f
Merge pull request #15475 from jijun2/fix-cni_test
...
Auto commit by PR queue bot
2015-10-20 01:30:24 -07:00
jijun2
bf6e8cbff7
test: using ioutil.TempDir in unit tests per #15176
...
update
update mode
delete /tmp
update
use ioutil.TempDir instead of static tmp dir
use ioutil.TempDir instead of static tmp dir
2015-10-16 09:21:46 +08:00
eulerzgy
8b174f7f33
adjust package name for pkg/cloudprovider
2015-10-10 16:44:54 +08:00
saadali
1bb4809841
Prevent GCE PD attach code from succeding if disk failed to attach.
2015-10-07 14:07:33 -07:00
saadali
7771151767
GCE PD attach/detach operations should poll to verify successful completion
2015-09-29 14:32:06 -07: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
tummychow
78ce5da988
Move util.StringSet into its own package
...
A lot of packages use StringSet, but they don't use anything else from
the util package. Moving StringSet into another package will shrink
their dependency trees significantly.
2015-09-10 12:04:15 -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
Sami Wagiaalla
ab0258f259
Support formatting and mounting GCE PD without 'safe_format_and_mount'
...
The GCE PD plugin uses safe_format_and_mount found on standard GCE images:
https://github.com/GoogleCloudPlatform/compute-image-packages/blob/master/google-startup-scripts/usr/share/google/safe_format_and_mount
On custom images where this is not available pods fail to format and
mount GCE PDs. This patch uses linux utilities in a similar way to the
safe_format_and_mount script to format and mount the GCE PD and AWS EBC
devices. That is first attempt a mount. If mount fails try to use file to
investigate the device. If 'file' fails to get any information about
the device and simply returns "data" then assume the device is not
formatted and format it and attempt to mount it again.
Signed-off-by: Sami Wagiaalla <swagiaal@redhat.com>
2015-08-26 11:53:40 -04:00
Saad Ali
b05cab0bc5
Merge pull request #6945 from eparis/IsMountPoint
...
Rename IsMountPoint to IsLikelyNotMountPoint
2015-08-19 12:47:51 -07:00
Kris Rousey
ae6c64d9bb
Moving everyone to unversioned client
2015-08-18 10:23:03 -07:00
Eric Paris
f125ad88ce
Rename IsMountPoint to IsLikelyNotMountPoint
...
IsLikelyNotMountPoint determines if a directory is not a mountpoint.
It is fast but not necessarily ALWAYS correct. If the path is in fact
a bind mount from one part of a mount to another it will not be detected.
mkdir /tmp/a /tmp/b; mount --bin /tmp/a /tmp/b; IsLikelyNotMountPoint("/tmp/b")
will return true. When in fact /tmp/b is a mount point. So this patch
renames the function and switches it from a positive to a negative (I
could think of a good positive name). This should make future users of
this function aware that it isn't quite perfect, but probably good
enough.
2015-08-14 18:45:43 -04:00
Bryan Stenson
9541414742
create cloudprovider "providers" package
...
move all providers into new package
update all references to old package path
2015-08-11 22:36:51 -07:00
Veres Lajos
9f77e49109
typofix - https://github.com/vlajos/misspell_fixer
2015-08-08 22:31:48 +01:00
Mike Danese
17defc7383
run gofmt on everything we touched
2015-08-05 17:52:56 -07:00
Mike Danese
8e33cbfa28
rewrite go imports
2015-08-05 17:30:03 -07:00
markturansky
8639f24374
rebased and updated
2015-07-29 14:38:40 -04:00
markturansky
63ccfa2beb
Added unit tests for each PV using IsReadOnly
2015-07-29 14:38:40 -04:00
markturansky
fae6759490
IsReadOnly bool on builder
2015-07-29 14:35:37 -04:00
markturansky
124bb22f92
Honor ReadOnly flag from persistent-volume plugin
2015-07-29 14:34:15 -04:00
jiangyaoguo
27524d6b36
refector gec-pd to seperate builder and cleaner
2015-07-24 16:15:37 +08:00
saadali
234f3ed814
Make GCE PD attach block on pending detach. Retry on detach/attach errors.
2015-07-23 14:03:50 -07:00
Tim Hockin
6eda8f47df
Remove volumes legacy mode
2015-07-22 21:53:35 -07:00
saadali
c952ee23a7
Work around for PDs stop mounting after a few hours issue
2015-06-30 13:31:03 -07:00
Tim Hockin
0bbba1c3d1
Merge pull request #8732 from markturansky/missing_pv_support
...
Fixed CanSupport func across all volumes (for PV)
2015-05-27 08:45:47 -07:00
Paul Morie
38c96725c0
Add doc.go files for all volume plugins
2015-05-23 16:59:12 -04:00
markturansky
3ad583cf2d
Fixed spotty CanSupport for PV and added more unit tests for same
2015-05-23 09:59:05 -04:00
Tim Hockin
f66ca25d9f
Rename AccessMode to PersistentVolumeAccessMode
2015-05-18 17:21:30 -07:00
Victor Marmol
aa744f92da
Merge pull request #7847 from swagiaal/fix-gce-pd-on-atomic-host
...
Support default udev GCE PD device path
2015-05-14 09:10:06 -07:00
Paul Morie
cd359ffa73
Refactor volume interfaces to receive pod instead of ObjectReference
2015-05-10 20:12:57 -04:00
Sami Wagiaalla
a85451addc
Support default udev GCE PD device path
...
The expected GCE PD device name is google-{name of disk}. This is
because standard GCE images contain a udev rules file which renames
the GCE PD device to google-{name of disk} https://github.com/GoogleCloudPlatform/compute-image-packages/blob/master/google-startup-scripts/lib/udev/rules.d/65-gce-disk-naming.rules . In custome images which do not have that udev rules file
the device gets the default rules apply http://cgit.freedesktop.org/systemd/systemd/tree/rules/60-persistent-storage.rules
and the GCE PD device ends up with a name which looks like scsi-0Google_PersistentDisk_{name of disk}
This patch adds support for that scenario.
Signed-off-by: Sami Wagiaalla <swagiaal@redhat.com>
2015-05-06 15:09:15 -04:00
Paul Morie
b538642464
Inject mounter into volume plugins
2015-05-04 11:28:57 -04:00
Eric Paris
6b3a6e6b98
Make copyright ownership statement generic
...
Instead of saying "Google Inc." (which is not always correct) say "The
Kubernetes Authors", which is generic.
2015-05-01 17:49:56 -04:00
Deyuan Deng
6897095e56
Change mount.Interface.Mount to exec('mount'), instead of syscall
2015-04-29 10:46:32 -04:00
markturansky
e1481fb9c2
Refactored Volume plugins to use InternalVolume instead of API types
2015-04-14 14:25:01 -04:00
Tim Hockin
f318da8344
Merge pull request #6379 from pmorie/rootcontext
...
Skeletal security context to facilitate tmpfs mount
2015-04-13 12:01:11 -07:00
Paul Morie
c98e89fca0
Set rootcontext of emptyDir tmpfs mounts correctly
2015-04-13 12:50:36 -04:00
Sami Wagiaalla
309fd272b6
GCE PD Test: Add explicit check for attach and detach calls
...
Signed-off-by: Sami Wagiaalla <swagiaal@redhat.com>
2015-04-13 11:36:28 -04:00
Deyuan Deng
d62afa85ff
Abstract ismountpoint and use platform mounter for NFS volume
2015-04-01 23:05:02 -04:00
Kris Rousey
6904c4d585
Fixing a lot of string formatting issues with regards to:
...
* Improper format specifier (e.g. %s for bools or %s for ints)
* More or less parameters than format specifiers
* Not calling a formatting function when it should have (e.g. Error() instead of Errorf())
2015-03-31 16:47:10 -07:00
markturansky
111f3d5120
Add GetAccessModes to volume plugin interface
2015-03-24 16:02:39 -04:00
markturansky
2fd82f60f4
Move escape function to util and clarify name
2015-03-24 13:52:31 -04:00
Tim Hockin
bfadae77e0
Promote volume plugins, prep for persistent vols
...
Move pkg/kubelet/volume/... to pkg/volume/...
Some renames to make the soon-to-come persistent volumes work clearer.
2015-03-20 13:49:40 -07:00