Mike Fedosin
cf8c193b87
Allow to read OpenStack config from the secret
...
Currently OpenStack cloud provider reads user credentials from config
file, where data is stored in clear text. This approach is not recommended,
as it is a serious security issue.
This commit add an ability to read the config from secrets, if necessary.
To do so, two new parameters are added to the config: SecretNamespace and
SecretName. If they are specified, the provider will try to read config
from the secret.
2019-03-07 19:20:54 +01:00
Kubernetes Prow Robot
8dd60281ff
Merge pull request #74653 from cofyc/fix74650-CheckVolumeExistenceOperation
...
Distinguish between volume path and mount path
2019-03-06 20:35:40 -08:00
Kubernetes Prow Robot
c80e45f892
Merge pull request #73840 from adisky/cinder-intree-migration
...
Add CSI Migration feature flags for Cinder In tree Driver
2019-03-06 14:45:16 -08:00
Kubernetes Prow Robot
b82868bb7e
Merge pull request #74787 from jianglingxia/fixbugiscsi
...
fix bug iscsi volume attach failed of /sys/class/iscsi_host dir not e…
2019-03-06 09:50:51 -08:00
Kubernetes Prow Robot
5a89793f8e
Merge pull request #74612 from jingxu97/windows
...
Add GcePD windows support
2019-03-05 21:42:22 -08:00
Kubernetes Prow Robot
d31427637b
Merge pull request #74926 from ddebroy/csiprov2
...
Add new CSI translation APIs required by CSI sidecars and unit tests
2019-03-05 14:54:21 -08:00
adisky
3090b63414
Add CSI Migration feature flags for Cinder In tree Driver
2019-03-05 06:21:36 +00: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
root
b6e8f71fe0
fix bug iscsi volume attach failed of /sys/class/iscsi_host dir not exist
2019-03-05 10:46:47 +08:00
Xing Yang
6265f4f78c
CSINodeInfo/CSIDriver controller changes
...
This is the 2nd PR to move CSINodeInfo/CSIDriver APIs to
v1beta1 core storage APIs. It includes controller side changes.
It depends on the PR with API changes:
https://github.com/kubernetes/kubernetes/pull/73883
2019-03-04 16:41:58 -08:00
Kubernetes Prow Robot
711b310389
Merge pull request #74606 from andrewsykim/cleanup-volumeattachment
...
replace usage of v1beta1 VolumeAttachments with v1
2019-02-28 00:27:36 -08:00
Jing Xu
5e04d200ee
Add GcePD windows support
...
This PR adds the support for GCEPD volume. For now, it uses a workaround
(https://github.com/pjh/gce-tools ) to get disk number in windows for a given GCE PD name.
2019-02-27 17:00:32 -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
Andrew Kim
01933b02a3
replace usage of v1beta1 VolumeAttachments with v1
2019-02-27 15:42:12 -05:00
Yecheng Fu
8940976602
Distinguish volume path with mount path
2019-02-27 19:31:26 +08:00
Kubernetes Prow Robot
5c528d6e40
Merge pull request #74618 from davidz627/fix/featureGates
...
Add feature gate check for migration at beginning of useCSIPlugin check
2019-02-26 19:40:26 -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
Kubernetes Prow Robot
32333b0fc7
Merge pull request #74524 from bertinatto/iscsi_iface_exists
...
Don't fail if iface is being used by iSCSI session
2019-02-26 12:44:57 -08:00
David Zhu
b0b6fd035a
Add feature gate check for migration at beginning of useCSIPlugin check
2019-02-26 11:47:20 -08:00
Travis Rhoden
766cf26897
Move original mount files back
...
Move original mount files back into pkg/util/mount. This move is done to
preserve git history.
2019-02-26 12:18:25 -07:00
Travis Rhoden
f2438cacf5
Copy mount files to pkg/volume/util/subpath
...
Files in pkg/util/mount that contain significant code implementation for
subpaths are moved to a new package at pkg/volume/util/subpath. This
move is done in order to preserve git history.
2019-02-26 12:14:55 -07:00
Fabio Bertinatto
d60d7e905f
Don't fail if iface is being used by iSCSI session
2019-02-26 17:13:29 +01:00
Jordan Liggitt
d1e865ee34
Update client callers to use explicit versions
2019-02-26 08:36:30 -05:00
Kubernetes Prow Robot
b3ca8262be
Merge pull request #74499 from andyzhangx/fix-parse-devicePath-issue
...
fix parse devicePath issue on Azure Disk
2019-02-26 00:35:47 -08:00
Kubernetes Prow Robot
6c5810c495
Merge pull request #74542 from gnufied/make-cinder-limits-via-openshift-conf
...
Allow cinder volume limits to be configurable
2019-02-25 21:48:52 -08:00
Hemant Kumar
7a46b30a7a
Allow cinder volume limits to be configurable
2019-02-25 16:09:24 -05:00
Silvan Kaiser
1fd5bd7de9
Adds missing user mapping option for Quobyte mounts
2019-02-25 12:03:34 +01:00
andyzhangx
433ebe3616
fix parse devicePath issue on Azure Disk
2019-02-25 07:02:35 +00:00
Yecheng Fu
618917e210
VolumeSpec may be nil in volume reconstruction scenario
2019-02-25 13:52:21 +08:00
Xiang Dai
36065c6dd7
delete all duplicate empty blanks
...
Signed-off-by: Xiang Dai <764524258@qq.com>
2019-02-23 10:28:04 +08:00
Kubernetes Prow Robot
8d6f20ea43
Merge pull request #74191 from andyzhangx/get-account-timeout
...
fix get azure accounts timeout issue when there is no out-bound IP
2019-02-22 05:22:45 -08:00
andyzhangx
8cd09bb143
add timeout in GetVolumeLimits operation
...
add timeout for getAllStorageAccounts
2019-02-22 07:22:05 +00:00
Kubernetes Prow Robot
ad1e021dcd
Merge pull request #74306 from jsafrane/fix-iscsi-deployment
...
Fix scanning of failed targets
2019-02-21 22:17:46 -08:00
Kubernetes Prow Robot
3baab4dc35
Merge pull request #73284 from leakingtapan/kubelet-migration-aws-2
...
Add In-tree to CSI migration logic for Mount and Unmount
2019-02-20 16:40:02 -08:00
Kubernetes Prow Robot
23a085062c
Merge pull request #69782 from darkowlzz/storageos-updates
...
StorageOS attach device before volume attach
2019-02-20 12:51:57 -08:00
Jan Safranek
dc46f483b5
Fix scanning of failed targets
...
If a iSCSI target is down while a volume is attached, reading from
/sys/class/iscsi_host/host415/device/session383/connection383:0/iscsi_connection/connection383:0/address
fails with an error. Kubelet should assume that such target is not
available / logged in and try to relogin. Eventually, if such error
persists, it should continue mounting the volume if the other
paths are healthy instead of failing whole WaitForAttach().
2019-02-20 17:17:01 +01:00
Kubernetes Prow Robot
ad403f8e20
Merge pull request #73901 from danielqsj/73882
...
decrease the level of the warning log in volume plugins
2019-02-19 23:20:41 -08:00
Kubernetes Prow Robot
64f2630215
Merge pull request #74023 from jsafrane/fix-fc-reconstruction
...
Fix reconstruction of FC volumes
2019-02-19 09:55:33 -08:00
Kubernetes Prow Robot
b8b143410f
Merge pull request #74076 from bertinatto/reg_error
...
Don't return CSI driver unregistration error
2019-02-19 08:37:29 -08:00
skarthiksrinivas
a309d8a6c1
Provision vsphere volume honoring zones
2019-02-17 21:37:00 -08:00
Cheng Pan
6355186c3e
Add In-tree to CSI migration logic for Mount and Unmount
2019-02-18 04:55:31 +00:00
Fabio Bertinatto
d6c642b46a
Only return CSI driver registration error
2019-02-16 10:06:33 +01:00
Subramanian Neelakantan
ba9a9cf7c3
Applies zone labels to newly created vsphere volumes
2019-02-15 15:06:01 +05:30
Kubernetes Prow Robot
808f2cf0ef
Merge pull request #72525 from justinsb/owners_should_not_be_executable
...
Remove executable file permission from OWNERS files
2019-02-14 23:55:45 -08: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
Jan Safranek
662b683de4
Fix reconstruction of FC volumes
...
It should reconstruct all WWNs or WWIDs instead of just the first one.
On-disk directory name format had to be changed to contain all WWNs/WWIDs.
2019-02-13 14:57:16 +01:00
Kubernetes Prow Robot
19e57c616c
Merge pull request #73892 from smarterclayton/fix_container_message
...
Make container create, start, and stop events consistent
2019-02-12 20:01:36 -08:00
danielqsj
713925bf3e
decrease the level of the warning log in volume plugins
2019-02-12 09:43:43 +08:00
Clayton Coleman
49250c6efc
Make container create, start, and stop events consistent
...
The messages for container lifecycle events are subtly inconsistent
and should be unified.
First, the field format for containers is hard to parse for a human,
so include the container name directly in the message for create
and start, and for kill remove the container runtime prefix.
Second, the pulling image event has inconsistent capitalization, fix
that to be sentence without punctuation.
Third, the kill container event was unnecessarily wordy and inconsistent
with the create and start events. Make the following changes:
* Use 'Stopping' instead of 'Killing' since kill is usually reserved for
when we decide to hard stop a container
* Send the event before we dispatch the prestop hook, since this is an
"in-progress" style event vs a "already completed" type event
* Remove the 'cri-o://' / 'docker://' prefix by printing the container
name instead of id (we already do that replacement at the lower level
to prevent high cardinality events)
* Use 'message' instead of 'reason' as the argument name since this is a
string for humans field, not a string for machines field
* Remove the hash values on the container spec changed event because no
human will ever be able to do anything with the hash value
* Use 'Stopping container %s(, explanation)?' form without periods to
follow event conventions
The end result is a more pleasant message for humans:
```
35m Normal Created Pod Created container
35m Normal Started Pod Started container
10m Normal Killing Pod Killing container cri-o://installer:Need to kill Pod
10m Normal Pulling Pod pulling image "registry.svc.ci.openshift.org/openshift/origin-v4.0-2019-02-10-172026@sha256:3da5303d4384d24691721c1cf2333584ba60e8f82c9e782f593623ce8f83ddc5"
```
becomes
```
35m Normal Created Pod Created container installer
35m Normal Started Pod Started container installer
10m Normal Killing Pod Stopping container installer
10m Normal Pulling Pod Pulling image "registry.svc.ci.openshift.org/openshift/origin-v4.0-2019-02-10-172026@sha256:3da5303d4384d24691721c1cf2333584ba60e8f82c9e782f593623ce8f83ddc5"
```
2019-02-10 16:39:42 -05:00
Andrew Kim
a62ee8b0a9
clean up volume rounding functions and move to k8s.io/cloud-provider/volume
2019-02-09 01:16:55 -05: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
Kubernetes Prow Robot
f0b72df47e
Merge pull request #73789 from vladimirvivien/volume-plugin-can-attach
...
AttachableVolumePlugin CanAttach() method for attachable check
2019-02-08 09:06:17 -08:00
Kubernetes Prow Robot
b50c643be0
Merge pull request #73540 from rlenferink/patch-5
...
Updated OWNERS files to include link to docs
2019-02-08 09:05:56 -08:00
Vladimir Vivien
0a653b3b80
Adds method CanAttach() to check plugin attachability
2019-02-08 08:04:15 -05:00
Kubernetes Prow Robot
eac19a3ab9
Merge pull request #73616 from dims/move-part-of-kubelet-apis-well-known-lables
...
move pkg/kubelet/apis/well_known_labels.go to staging/src/k8s.io/api/core/v1/
2019-02-07 19:44:34 -08:00
Kubernetes Prow Robot
6fc9a72f58
Merge pull request #73533 from babiel/fix-fsgroup-directory-permissions
...
Ensure directories are executable for fsGroup
2019-02-06 20:03:01 -08:00
Kubernetes Prow Robot
4bbad05972
Merge pull request #73391 from qingsenLi/k8s190128
...
fix some typos in /pkg/volume
2019-02-06 13:23:51 -08:00
Kubernetes Prow Robot
2d956389dc
Merge pull request #73313 from pivotal-k8s/csi-drivers-list
...
Refactor csiDriversStore
2019-02-06 09:31:06 -08:00
Kubernetes Prow Robot
f3a6dbceb2
Merge pull request #68925 from casusbelli/fix_65312
...
Adding Quobyte Tenant to QuobyteVolumeSource to enable deletion of persistent volumes
2019-02-05 12:08:37 -08:00
Davanum Srinivas
cf44bfa556
Move LabelMultiZoneDelimiter to pkg/volume/util
...
Change-Id: I098b210e44ac3bb1901e029ff7cd33aa0afbdc74
2019-02-05 13:39:07 -05:00
Davanum Srinivas
b975573385
move pkg/kubelet/apis/well_known_labels.go to staging/src/k8s.io/api/core/v1/
...
Co-Authored-By: Weibin Lin <linweibin1@huawei.com>
Change-Id: I163b2f2833e6b8767f72e2c815dcacd0f4e504ea
2019-02-05 13:39:07 -05:00
Roy Lenferink
b43c04452f
Updated OWNERS files to include link to docs
2019-02-04 22:33:12 +01:00
Kubernetes Prow Robot
c953daa3bc
Merge pull request #73604 from andrewsykim/gce-features
...
move GCERegionalPersistentDisk feature to k8s.io/cloud-provider/features
2019-02-01 17:14:36 -08:00
Andrew Kim
8be7963797
move GCERegionalPersistentDisk feature to k8s.io/cloud-provider
2019-01-31 15:19:52 -05:00
Kubernetes Prow Robot
8f1082c6af
Merge pull request #73455 from danielqsj/keymutex
...
Migrate to k8s.io/utils/keymutex and k8s.io/utils/strings
2019-01-31 09:56:19 -08:00
Kubernetes Prow Robot
9487d37666
Merge pull request #72873 from taragu/exponential-backoff-plugin-registration
...
Add exponential backoff for plugin registration
2019-01-31 08:07:12 -08:00
danielqsj
cf1fb8a1cd
fix format issue
2019-01-31 22:01:13 +08:00
Daniel (Shijun) Qian
e72b32558c
Merge branch 'master' into keymutex
2019-01-31 20:50:57 +08:00
Kubernetes Prow Robot
1f7e9fd9a2
Merge pull request #73488 from andrewsykim/replace-utils-file
...
Replace pkg/util/file with k8s.io/utils/path
2019-01-30 17:50:16 -08:00
Maximilian Gaß
7a9f21bbb8
Ensure directories are executable for fsGroup
2019-01-30 18:07:38 +01:00
danielqsj
657a1a1a34
change import alias of utils/strings
2019-01-30 10:44:09 +08:00
danielqsj
093328e57f
migrate to k8s.io/utils/strings
2019-01-30 10:24:00 +08:00
danielqsj
1add6b0cfa
migrate to k8s.io/utils/keymutex
2019-01-30 10:23:59 +08:00
Tara Gu
1f822030a4
Correct error message
2019-01-29 21:14:26 -05:00
Tara Gu
ad4bd8bdac
Add exponential backoff for plugin registration
2019-01-29 21:13:02 -05:00
Kubernetes Prow Robot
53ee46f9a9
Merge pull request #72201 from nmiculinic/secret_key
...
Print non-existent key reference in the secret
2019-01-29 12:49:39 -08:00
Andrew Kim
84191eb99b
replace pkg/util/file with k8s.io/utils/path
2019-01-29 15:20:13 -05:00
Kubernetes Prow Robot
cc1be28943
Merge pull request #72624 from danielqsj/clean_unmount
...
Cleanup callers of deprecated functions in volume/util
2019-01-28 23:06:20 -08:00
Sunny
835183ad50
Add AttachDevice() to attach the device to a host
...
AttachDevice() ensures that the volume device is attached to the
host before they are used.
2019-01-28 22:58:07 +05:30
Sunny
a4cc754fb4
StorageOS update api library
2019-01-28 22:57:58 +05:30
qingsenLi
4b25a4fd93
fix some typos in /pkg/volume
2019-01-28 23:17:48 +08:00
Hannes Hörl
84c46629c5
Refactor to use new csi.DriversList & csi.Driver
2019-01-25 12:23:28 +00:00
Hannes Hörl
96aa4fb5d2
Implement DriversStore as a struct
...
This allows us to hide
- the mutex handling
- the initialization
as implementation details.
Signed-off-by: Maria Ntalla <mntalla@pivotal.io>
2019-01-25 12:23:15 +00:00
Masaki Kimura
732eb69597
Fix AWS driver fails to provision specified fsType
2019-01-23 05:17:06 +00:00
Silvan Kaiser
cc71b0aebd
Adding Tenant to QuobyteVolumeSource
...
Adds the tenant id to the QuobyteVolumeSource type and
updates the quobyte api client to support looking up
volume ids.
2019-01-22 14:42:12 +01: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
Kubernetes Prow Robot
7f0e04a089
Merge pull request #73043 from davidz627/feature/migrationCommon
...
Add common functionality required for all in-tree to CSI Migration shim code pieces
2019-01-17 18:55:10 -08:00
David Zhu
384fce6bb1
Common Migration shim functaionality and flags
2019-01-17 14:43:59 -08:00
David Zhu
d8c9dc5bb5
Add IsMigratableToCSI to volume plugin interface
2019-01-17 14:43:52 -08:00
Kubernetes Prow Robot
493d3565d8
Merge pull request #72874 from humblec/iscsi
...
Update approver list.
2019-01-17 13:51:35 -08:00
Kubernetes Prow Robot
d6b7409103
Merge pull request #72980 from gnufied/cinder-pod-volumes
...
Add Cinder Max Volume Limit
2019-01-16 13:32:32 -08:00
Hemant Kumar
727b3097f9
Do not make Cinder Max volume predicate a default
2019-01-16 15:17:05 -05:00
Mike McRill
a88d1d3dcc
Add Cinder Max Volume Limit
...
Also add place holder support for reporting limits from node.
2019-01-16 13:46:28 -05:00
Kubernetes Prow Robot
ce19aad22b
Merge pull request #70527 from qingsenLi/git181101
...
remove repetitive word in annotation
2019-01-15 20:19:09 -08:00
Humble Chirammal
a5c5502d23
Update approver list.
...
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2019-01-14 11:45:26 +05:30
hchiramm
86761e524a
Update volume plugin reviewers.
...
Signed-off-by: hchiramm <hchiramm@redhat.com>
2019-01-12 09:47:17 +05:30
Justin SB
dd19b923b7
Remove executable file permission from OWNERS files
2019-01-11 16:42:59 -08:00
Jing Xu
7bac6ca73a
Address comments
...
This commit addressed the comment and also add a unit test.
2019-01-11 10:57:37 -08:00
Kubernetes Prow Robot
8743a0e3c6
Merge pull request #72033 from galexrt/more_logging_in_rbd_provisioner
...
rbd: log error when unable to get Secret
2019-01-08 07:48:57 -08:00
danielqsj
2426f0ee4e
Cleanup IsCorruptedMnt callers
2019-01-08 22:16:11 +08:00
danielqsj
8092904e3c
Cleanup PathExists callers
2019-01-08 22:16:11 +08:00
danielqsj
d94cd822b7
Cleanup UnmountPath/UnmountMountPoint callers
2019-01-08 22:13:50 +08:00
Kubernetes Prow Robot
ee10b45c3d
Merge pull request #72008 from oleksiys/master
...
Remove generic mount validation logic during unmount and rely on CSI driver
2019-01-07 12:09:03 -08:00
oleksiys
f6a0359c9d
Fix CSI volume unmount and cleanup logic
2019-01-05 09:00:17 -08:00
Kubernetes Prow Robot
b006342c3b
Merge pull request #72229 from andyzhangx/azuredisk-hostcache
...
change azure disk host cache to ReadOnly by default
2019-01-04 20:11:11 -08:00
andyzhangx
53145d793e
change azure disk host cache to ReadOnly by default
...
change cachingMode default value for azure disk PV
revert back to ReadWrite in azure disk PV setting
2019-01-04 02:37:12 +00:00
Michelle Au
7a4f906f25
Rename UnmountMountPoint to CleanupMountPoint
2019-01-03 16:35:54 -08:00
Michelle Au
002a4e33d8
Move unmount volume util from pkg/volume/util to pkg/util/mount
2019-01-03 16:34:53 -08:00
mlmhl
34a2f23dc1
use json format to get rbd image size
2018-12-29 19:45:13 +08:00
Jordan Liggitt
73dcfe12da
Stop checking VolumeScheduling feature gate
2018-12-27 17:45:45 -05:00
Neven Miculinic
49a966cb1a
Added missing secret key in the message
2018-12-19 13:03:11 +01:00
Kubernetes Prow Robot
cd02e752bf
Merge pull request #71509 from cofyc/fix71438
...
Fix device mountable volume names in DSW
2018-12-19 00:51:52 -08:00
Michelle Au
8954c11719
Cleanup volume approvers
2018-12-18 15:12:13 -08:00
Michelle Au
0b6fa24f65
Add msau42 to top-level volume approvers
2018-12-18 15:11:42 -08:00
andyzhangx
81a123dbed
fix kubelet log flushing issue in azure disk
2018-12-12 08:20:00 +00:00
Yecheng Fu
67552a8f6e
Add unit test to verify generated volume names.
2018-12-12 13:03:21 +08:00
Alexander Trost
f9e7ba07b7
rbd: log error when unable to get Secret
...
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2018-12-11 19:31:21 +01:00
Kubernetes Prow Robot
13985d2674
Merge pull request #70172 from WanLinghao/configmap_volume_support_monitor
...
Support more volume types in stats/summary endpoint including configm…
2018-12-09 18:36:58 -08:00
Kubernetes Prow Robot
83b3baaf58
Merge pull request #71581 from saad-ali/fixCSILogEventSpam
...
Reduce CSI log and event spam
2018-11-30 22:27:27 -08:00
Yecheng Fu
5ada29ac16
Rename GetUniqueVolumeNameForNonAttachableVolume to GetUniqueVolumeNameFromSpecWithPod
2018-12-01 12:25:32 +08:00
k8s-ci-robot
79e5cb2cb7
Merge pull request #71302 from liggitt/verify-unit-test-feature-gates
...
Split mutable and read-only access to feature gates, limit tests to readonly access
2018-11-29 21:45:12 -08:00
k8s-ci-robot
2fd1949b7f
Merge pull request #71294 from Chenditang/verify-golint
...
Fix golint verify errors.
2018-11-29 21:45:02 -08:00
saad-ali
2251bf0c21
Ensure volume mount err checking done inside op
...
Ensure volume mount error checking is done inside the operation so that
failures get handled with exponential backoff, etc.
2018-11-29 16:52:24 -08:00
k8s-ci-robot
6be4f1bbf3
Merge pull request #71471 from mshaverdo/panic_in_attach_detach_controller
...
Fix panic in attachDetachController
2018-11-29 09:30:21 -08:00
k8s-ci-robot
d80614d4a7
Merge pull request #70860 from humblec/getVolumeName
...
GlusterFS: Move GetVolumeName() to unimplemented func.
2018-11-29 07:36:28 -08:00
k8s-ci-robot
cc153a9cd5
Merge pull request #70612 from jianglingxia/jlx201811031409
...
delete new defined para name in fc volume
2018-11-29 07:36:07 -08:00
Mikhail Shaverdo
a29981640f
Fix nil pointer dereference panic in attachDetachController
...
add check `attachableVolumePlugin == nil` to operationGenerator.GenerateDetachVolumeFunc()
2018-11-29 13:10:07 +03:00
k8s-ci-robot
d0e8e6b78f
Merge pull request #70613 from jianglingxia/jlx201811031619
...
fix golint problem of volume cephfs/iscsi/nfs
2018-11-29 02:01:13 -08:00
k8s-ci-robot
e5326f22ea
Merge pull request #70471 from xichengliudui/fix181031
...
Fix some typos
2018-11-29 00:48:16 -08:00
k8s-ci-robot
b548d92b7c
Merge pull request #70392 from harsh-px/cfg-port
...
Lookup PX api port from k8s service
2018-11-28 23:31:50 -08:00
saad-ali
18050e308c
Allow CSI Drivers suporting 0.x/1.x to use old dir
...
Allow drivers implmenting both CSI 0.x and 1.x to use the old volume
plugin directory in addition to the the new volume plugin directory.
2018-11-28 11:11:37 -08:00
saad-ali
aa8244beb5
Modify CSI to handle both 0.3 and 1.0
...
Modify the CSI volume plugin to handle CSI version 0.x as well as 1.x
2018-11-21 18:37:31 -08:00
saad-ali
d1b44857ad
Add missing feature gate to CSI driver uninstall
2018-11-21 18:37:31 -08:00
saad-ali
2b44ec5e9c
Reduce csipb dependencies
...
Remove csipb dependency from everywhere except the CSI client in
preperation for supporting multiple CSI clients.
2018-11-21 18:37:31 -08:00
saad-ali
8f666d9e41
Modify kubelet watcher to support old versions
...
Modify kubelet plugin watcher to support older CSI drivers that use an
the old plugins directory for socket registration.
Also modify CSI plugin registration to support multiple versions of CSI
registering with the same name.
2018-11-21 18:37:31 -08:00
Jordan Liggitt
2498ca7606
drop VerifyFeatureGatesUnchanged
2018-11-21 11:51:33 -05:00
chendt.fnst
80de428f49
Fix golint verify errors.
...
**What type of PR is this?**
/kind cleanup
**What this PR does / why we need it**:
$ hack/verify-golint.sh
Errors from golint:
pkg/cloudprovider/providers/aws/aws_fakes.go:357:9: if block ends with a return statement, so drop this else and outdent its block
pkg/volume/util/util.go:204:9: if block ends with a return statement, so drop this else and outdent its block
**Which issue(s) this PR fixes** *(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged)*:
**Special notes for your reviewer**:
**Release note**:
```
NONE
```
2018-11-21 09:11:20 +08:00
Jing Xu
562d0fea53
Handle failed attach operation leave uncertain volume attach state
...
This commit adds the unit tests for the PR. It also includes some files
that are affected by the function name changes.
2018-11-19 17:21:49 -08:00
Jing Xu
47331cf0a2
WIP: Handle failed attach operation leave uncertain volume attach state
...
This PR fixes issue #32727 .
When an attach operation fails, it is still possible that the volume
will be attached to the node later. This PR adds the logic to record the
volume to node with attached state no matter whether the operation
succedded or not. If the operation fails, mark the attached state to
false. If the operation succeeded, mark the attached state to true. The
reconciler will still issue attach operation until it returns
successfully. If the pod is removed in the mean time, the reconciler
will issue detach operations for all the volumes no matter what is the
attached state.
2018-11-19 17:19:10 -08:00
jianglingxia
6159bab94a
Merge branch 'master' into jlx201811031619
2018-11-17 12:53:21 +08:00
jianglingxia
0094e05975
fix golint problem of volume cephfs/iscsi/nfs
2018-11-17 12:50:47 +08:00
k8s-ci-robot
ec2e767e59
Merge pull request #71167 from msau42/block-beta
...
Promote raw block volume support to beta
2018-11-16 20:28:03 -08:00
k8s-ci-robot
4821291398
Merge pull request #71095 from msau42/csi-devicepath
...
Remove devicePath dependency for CSI volumes
2018-11-16 18:22:24 -08:00
k8s-ci-robot
f877b2257a
Merge pull request #71074 from jsafrane/volume-manager-races
...
Fix race between MountVolume and UnmountDevice
2018-11-16 18:22:14 -08:00
Michelle Au
974d47ecf8
Remove devicePath dependency for CSI volumes
2018-11-16 15:40:35 -08:00
Cheng Xing
ca18690ceb
Augmenting API call retry in nodeinfomanager
2018-11-16 13:00:22 -08:00
Matthew Wong
dd517c9ff2
Update all tests to account for BlockVolume enabled by default
2018-11-16 13:38:59 -05:00
Jordan Liggitt
248d661327
Add tests to ensure storage feature gate changes don't escape packages
2018-11-16 10:52:53 -05:00
Jordan Liggitt
358c092abe
fix storage unit tests leaking feature flag changes
2018-11-16 10:52:52 -05:00
Michelle Au
fd64c08240
Fix storage feature gate test setting
2018-11-16 10:49:40 -05:00
Jan Safranek
5283537401
Fixed clearing of devicePath after UnmountDevice
...
UnmountDevice must not clear devicepath, because such devicePath
may come from node.status (e.g. on AWS) and subsequent MountDevice
operation (that may be already enqueued) needs it.
2018-11-16 13:24:42 +01:00
k8s-ci-robot
6fc60428a7
Merge pull request #71020 from saad-ali/updateCSI10
...
Bump CSI Spec to 1.0.0 and gRPC to 1.13.0
2018-11-16 01:53:21 -08:00
k8s-ci-robot
cde4c9ebe1
Merge pull request #68635 from mkimuram/issue/68424
...
CSI block volume refactor to fix target path
2018-11-15 21:35:42 -08:00
jianglingxia
371088e83c
delete new defined para name in fc volume
2018-11-16 09:40:11 +08:00
saad-ali
09d3dce38a
Update CSI client to pick up CSI v1.0.0 changes
2018-11-15 16:39:59 -08:00
Masaki Kimura
9c56b53390
Fix the comment for csi block pathes to make look the same to filesystem
2018-11-15 23:26:19 +00:00
k8s-ci-robot
726c07eb26
Merge pull request #69929 from jsafrane/csi-ga
...
Promote CSIPersistentVolume feature to GA
2018-11-14 20:34:58 -08:00
Masaki Kimura
6d7b5f1d1b
Delegate creation of publishPath to driver and allow creating device file directly
2018-11-15 01:14:12 +00:00
Masaki Kimura
d8c6fe5202
Change stagingPath to be a directory
2018-11-14 20:53:28 +00:00
k8s-ci-robot
5a84dffc75
Merge pull request #71007 from mikedanese/allowdefault
...
TokenRequestProjections should allow API server to default empty audience
2018-11-14 11:38:16 -08:00
Masaki Kimura
f0354ad605
Fix for adding block volume support to CSI RBD driver
2018-11-14 19:20:56 +00:00
Michelle Au
498cd61f41
Add volumeattachment status subresource
2018-11-14 14:01:16 +01:00
Mike Danese
3167b15908
TokenRequestProjections should allow API server to default empty audience
2018-11-13 20:25:16 -08:00
k8s-ci-robot
d3a21cf5a2
Merge pull request #70848 from cofyc/fix64590
...
Improve usability of CSI plugin metrics
2018-11-13 19:45:43 -08:00
Deep Debroy
05759a9091
Handle validation of drivers in Spec and Status
...
Signed-off-by: Deep Debroy <ddebroy@docker.com>
2018-11-13 02:35:30 -08:00
Deep Debroy
af73d7bdc1
Add validation of CSINodeInfo before Create/Update calls
...
Signed-off-by: Deep Debroy <ddebroy@docker.com>
2018-11-13 00:48:56 -08:00
Harsh Desai
fdc60629c9
Update portworx to move from glog to klog
...
Signed-off-by: Harsh Desai <harsh@portworx.com>
2018-11-12 10:59:57 -08:00
Harsh Desai
db93c5fcbe
cache portworx API port
...
- reused client whenever possible
- refactor get client function into explicit cluster-wide and local functions
Signed-off-by: Harsh Desai <harsh@portworx.com>
2018-11-12 10:51:36 -08:00
Harsh Desai
c6a2d24fa2
Lookup PX api port from k8s service
...
Fixes #70033
Signed-off-by: Harsh Desai <harsh@portworx.com>
2018-11-12 10:50:12 -08:00
Yecheng Fu
dfe0a08f05
Improve usability of CSI plugin metrics
...
Use full qualified plugin name if volume spec is present.
2018-11-12 09:21:49 +08:00
Davanum Srinivas
954996e231
Move from glog to klog
...
- Move from the old github.com/golang/glog to k8s.io/klog
- klog as explicit InitFlags() so we add them as necessary
- we update the other repositories that we vendor that made a similar
change from glog to klog
* github.com/kubernetes/repo-infra
* k8s.io/gengo/
* k8s.io/kube-openapi/
* github.com/google/cadvisor
- Entirely remove all references to glog
- Fix some tests by explicit InitFlags in their init() methods
Change-Id: I92db545ff36fcec83afe98f550c9e630098b3135
2018-11-10 07:50:31 -05:00
k8s-ci-robot
e133ab274d
Merge pull request #70515 from davidz627/feature/csiNodeInfo
...
Add explicit "Installed" field to CSINodeInfo and change update semantics
2018-11-09 06:42:09 -08:00
Humble Chirammal
e9ed21988d
GetVolumeName() is used in a few places, all of which are not applicable to gluster:
...
AD controller
kubelet volume manager actual/desired sw for attachable volumes
volume reconstruction
This is a followup PR based on comment#
https://github.com/kubernetes/kubernetes/pull/60195#discussion_r231675596
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2018-11-09 16:09:12 +05:30
David Zhu
06f3b26012
Change semantics of driver install and uninstall in CSINodeInfo to use new fields.
2018-11-08 19:45:01 -08:00
David Zhu
4621887037
Updated test files with new fields
2018-11-08 19:45:01 -08:00
k8s-ci-robot
3c10143967
Merge pull request #60195 from humblec/glusterfs-pvspec-3
...
Refactor GlusterFS PV spec.
2018-11-08 00:24:39 -08:00
fanzhangio
dcb3a5fac7
Feature: Implements Raw Block Volume Support for in-tree vSphere plugin
...
- add raw block volume support for vsphere volume provisioner
- set VolumeMode and any FSType in vsphere volume dynamic provision if feature
BlockVolume enabled
- implement BlockVolumePlugin, BlockVolumeMapper, BlockVolumeUnmapper interfaces.
- add tests for vsphere block volume
2018-11-07 12:16:12 -08:00
Humble Chirammal
bdb051c72d
Refactor GlusterFS PV spec.
...
This patch introduces glusterfsPersistentVolumeSource addition
to glusterfsVolumeSource. All fields remains same as glusterfsVolumeSource
with an addition of a new field
called `EndpointsNamespace` to define namespace of endpoint in the
spec.
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2018-11-06 15:51:01 +05:30
k8s-ci-robot
839c4ec7c3
Merge pull request #70609 from jianglingxia/jlx201811031314
...
delete some para no need used in local volume
2018-11-05 19:05:03 -08:00
k8s-ci-robot
e40209a433
Merge pull request #70607 from jianglingxia/jlx201811021606
...
fix local volume getVolumeSourceFSType func by golint
2018-11-05 19:04:54 -08:00
k8s-ci-robot
703ac550a3
Merge pull request #68880 from houjun41544/20180920-downward
...
Remove unused function in downwardapi.go
2018-11-05 16:32:15 -08:00
k8s-ci-robot
15de3eed09
Merge pull request #70461 from mysunshine92/golint
...
fix golint errors in pkg/volume/*
2018-11-05 11:41:47 -08:00
k8s-ci-robot
f44a8a4cac
Merge pull request #69419 from humblec/pvc-rfc-63
...
glusterfs: Allow admin to enable or disable custom endpoint/service names
2018-11-04 22:36:40 -08:00
jianglingxia
0c79df1bcb
delete some para no need used in local volume
2018-11-03 14:03:47 +08:00
jianglingxia
4ead52e0f5
fix local volume getVolumeSourceFSType func by golint
2018-11-03 12:56:10 +08:00
k8s-ci-robot
af583b1c5f
Merge pull request #70540 from gnufied/fix-csi-attach-limit-node-update
...
Fix csi attach limit node update
2018-11-02 16:44:30 -07:00
k8s-ci-robot
69f5f5eff2
Merge pull request #67978 from WanLinghao/token_controller_improve
...
remove idle tokens in kubelet token manager
2018-11-02 12:28:47 -07:00
Hemant Kumar
889468b1ab
Fix csi volume attach limit
2018-11-02 15:10:31 -04:00
k8s-ci-robot
6813ebb568
Merge pull request #67851 from aniket-s-kulkarni/flexvolume-resize-implementation
...
Flexvolume resize implementation
2018-11-02 10:47:01 -07:00
k8s-ci-robot
6c0684f010
Merge pull request #70548 from vladimirvivien/csi-plugin-deregister
...
CSI Kubelet Plugin Watcher DeRegistration
2018-11-02 08:39:06 -07:00
k8s-ci-robot
45550cadbe
Merge pull request #70477 from andyzhangx/azure-ultrassd-sdk
...
add azure UltraSSD disk support
2018-11-01 22:16:55 -07:00
k8s-ci-robot
4351cea80c
Merge pull request #70046 from cheftako/lintCleanGce
...
Fixed lint errors for pkg/cloudprovider/providers/gce.
2018-11-01 13:44:06 -07:00
k8s-ci-robot
133f662610
Merge pull request #70408 from idealhack/fix-golint-pkg-volume-util
...
Fix golint error for `pkg/volume/util/resize_util.go`
2018-11-01 11:11:22 -07:00
Vladimir Vivien
df280251e7
CSI Kubelet Plugin Watcher unregistration
2018-11-01 13:53:55 -04:00
qingsenLi
3ac9b27b2a
remove repetitive word in annotation
2018-11-02 00:54:41 +08:00
yameiwang
18a904d187
fix golint errors in pkg/volume/*
2018-11-01 16:52:56 +08:00
andyzhangx
f1bd292c76
add ultrassd support
...
update stagin Godeps.json
update godeps license
fix test failure
fix comments
2018-11-01 06:30:15 +00:00
Humble Chirammal
734da0edb1
glusterfs: Allow admin to provide custom endpoint/service name prefix
...
This patch introduces a new SC parameter called `customepnameprefix`
in glusterfs plugin. This new storageclass parameter allow admins
to create endpoints and services with mentioned prefix.
If this parameter has not been set or if its empty,
default prefix string ie "glusterfs-dynamic-" will be used for ep/svc
name.
This patch address below issues#
https://github.com/kubernetes/kubernetes/issues/53939
https://github.com/kubernetes/kubernetes/issues/56379
Additional Ref# #
https://github.com/kubernetes/kubernetes/issues/56380
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2018-10-31 18:06:40 +05:30
andyzhangx
d210b4bcf3
upgrade azure sdk to support ultra ssd
...
update Godeps.json
update azure sdk for ultrassd support
update bazel
fix build failure
2018-10-31 10:08:52 +00:00