k3s/pkg/volume
Kubernetes Submit Queue 7da05eb87b
Merge pull request #63295 from jsafrane/fix-csi-detach-delete
Automatic merge from submit-queue (batch tested with PRs 63569, 63918, 63980, 63295, 63989). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Fixed CSI volume detach when the volume is already detached.

**What this PR does / why we need it**:
"VolumeAttachment NotFound" error should be treated as successful detach.

/sig storage
/assign @vladimirvivien @saad-ali

**Special notes for your reviewer**:
Note that the PR changes just 4 lines in attachment code, the rest is unit test refactoring to inject fake errors.

**Release note**:

```release-note
NONE
```
2018-05-18 09:54:22 -07:00
..
aws_ebs replace filepath with path due to pre-formatted volumeName 2018-04-27 21:22:55 +05:30
azure_dd Merge pull request #63098 from shubheksha/fix/62916-replace-path-with-filepath-aws-azure 2018-05-03 11:16:10 -07:00
azure_file replace path with filepath 2018-04-24 19:08:38 +05:30
cephfs fix cephfs fuse mount bug when use is not admin 2018-03-28 09:20:32 +08:00
cinder Use cloudprovider.NotImplemented in AddSSHKeyToAllInstances 2018-04-27 13:19:06 -07:00
configmap
csi Fix CSI volume detach when the volume is already detached. 2018-05-04 12:22:15 +02:00
downwardapi Use filepath.Clean() instead of path.Clean() 2018-04-17 10:44:30 +08:00
empty_dir
fc Return error in mount_unsupported for unsupported platforms 2018-03-29 14:17:07 -07:00
flexvolume Update all script to use /usr/bin/env bash in shebang 2018-04-19 13:20:13 +02:00
flocker
gce_pd
git_repo Revert "git: Use VolumeHost.GetExec() to execute stuff in volume plugins" 2018-04-11 14:44:20 +02:00
glusterfs Add volumenameprefix tests for glusterfs dynamic provisioner. 2018-04-18 19:10:10 +05:30
host_path Add more volume types in e2e and fix part of them. 2018-05-02 10:31:42 +08:00
iscsi
local Merge pull request #62903 from cofyc/fixfsgroupcheckinlocal 2018-05-02 20:13:11 -07:00
nfs
photon_pd
portworx Add support to resize Portworx volume 2018-04-19 12:14:43 -07:00
projected
quobyte Use filepath.Clean() instead of path.Clean() 2018-04-17 10:44:30 +08:00
rbd Merge pull request #63424 from xiaoxubeii/issue-63183-master 2018-05-10 06:31:16 -07:00
scaleio Merge pull request #59035 from YuxiJin-tobeyjin/fix-format-error-for-sioUtil-ut 2018-04-09 06:56:05 -07:00
secret
storageos
testing Only count mounts that are from other pods 2018-04-19 15:40:51 -07:00
util Merge pull request #59034 from wenlxie/githubupstream.master.ignoreloopdevicenotfounderrorforrbd 2018-05-09 05:13:08 -07:00
validation
vsphere_volume
BUILD Report events to apiserver in local volume plugin. 2018-04-18 11:19:36 +08:00
OWNERS
doc.go
metrics_cached.go
metrics_du.go
metrics_du_test.go
metrics_errors.go
metrics_nil.go
metrics_nil_test.go
metrics_statfs.go
metrics_statfs_test.go
plugins.go Only count mounts that are from other pods 2018-04-19 15:40:51 -07:00
plugins_test.go
volume.go
volume_linux.go Add more volume types in e2e and fix part of them. 2018-05-02 10:31:42 +08:00
volume_unsupported.go Add more volume types in e2e and fix part of them. 2018-05-02 10:31:42 +08:00