k3s/pkg/volume
Kubernetes Submit Queue 06e3fefc21
Merge pull request #61738 from ianchakeres/osx-volume-ut-fix
Automatic merge from submit-queue (batch tested with PRs 61452, 61727, 61462, 61692, 61738). 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>.

Skip volume unit tests that don't work on osx.

**What this PR does / why we need it**:

`volume/fc` and `volume/rbd` unit tests fail on osx.

```
$ pwd
<snip>/gopath/src/k8s.io/kubernetes/pkg/volume/fc
$ go test
--- FAIL: Test_ConstructVolumeSpec (0.00s)
    fc_test.go:450: couldn't fetch mountrefs
    fc_test.go:469: failed to retrieve WWIDs
    fc_test.go:450: couldn't fetch mountrefs
    fc_test.go:469: failed to retrieve WWIDs
FAIL
exit status 1
FAIL    k8s.io/kubernetes/pkg/volume/fc    0.054s
<snip>
$ pwd
<snip>/gopath/src/k8s.io/kubernetes/pkg/volume/rbd
$ go test
--- FAIL: TestConstructVolumeSpec (0.00s)
	rbd_test.go:575: ConstructVolumeSpec failed: directory /var/folders/59/yc7_f4fd53nbyw868zqpk78cn7shx9/T/rbd_test144865306/pods/pod123/volumes/kubernetes.io~rbd/vol is not mounted
	rbd_test.go:575: ConstructVolumeSpec failed: directory /var/folders/59/yc7_f4fd53nbyw868zqpk78cn7shx9/T/rbd_test144865306/pods/pod123/volumes/kubernetes.io~rbd/vol is not mounted
FAIL
exit status 1
FAIL	k8s.io/kubernetes/pkg/volume/rbd	0.063s
```

**Which issue(s) this PR fixes** :
Fixes #61569 and #61571 

**Special notes for your reviewer**:

To see these unit test fail, you need to run `go test` on an osx machine.

**Release note**:
```release-note
NONE
```
2018-03-27 09:47:22 -07:00
..
aws_ebs update bazel 2018-02-27 20:23:36 +08:00
azure_dd respect fstype in Windows for azure disk 2018-03-16 08:25:03 +00:00
azure_file add remount logic for azure file plugin 2018-03-01 07:46:07 +00:00
cephfs update import 2018-02-27 20:23:35 +08:00
cinder update bazel 2018-02-27 20:23:36 +08:00
configmap Fix nested volume mounts for read-only API data volumes 2018-02-27 07:41:39 -07:00
csi Replace "golang.org/x/net/context" with "context" 2018-03-22 20:57:14 +08:00
downwardapi Fix nested volume mounts for read-only API data volumes 2018-02-27 07:41:39 -07:00
empty_dir Use consts defined in api instead of defining another ones. 2018-02-28 00:40:58 +08:00
fc Skip volume unit tests that don't work on osx. 2018-03-26 12:47:36 -07:00
flexvolume reduce nesting 2018-03-09 21:03:22 -08:00
flocker update bazel 2018-02-27 20:23:36 +08:00
gce_pd Merge pull request #60337 from verult/repd-feature-gate 2018-02-27 12:05:33 -08:00
git_repo update import 2018-02-27 20:23:35 +08:00
glusterfs Merge pull request #59536 from linyouchong/lyc-20180208 2018-03-21 03:43:11 -07:00
host_path Lock subPath volumes 2018-03-05 09:14:44 +01:00
iscsi Add volumemetrics for ISCSI Plugin. 2018-03-15 13:40:50 +05:30
local Add a few "+build linux" tags where appropriate. 2018-02-27 13:53:32 -08:00
nfs pkg/volume/nfs/nfs.go: correct error messages. 2018-03-05 12:12:51 +01:00
photon_pd update bazel 2018-02-27 20:23:36 +08:00
portworx update bazel 2018-02-27 20:23:36 +08:00
projected Fix nested volume mounts for read-only API data volumes 2018-02-27 07:41:39 -07:00
quobyte update bazel 2018-02-27 20:23:36 +08:00
rbd Merge pull request #61738 from ianchakeres/osx-volume-ut-fix 2018-03-27 09:47:22 -07:00
scaleio delete unused variable 2018-03-01 19:31:23 +08:00
secret Fix nested volume mounts for read-only API data volumes 2018-02-27 07:41:39 -07:00
storageos Merge pull request #54970 from jianglingxia/jlx-storageos 2018-03-19 23:42:15 -07:00
testing update bazel 2018-02-27 20:23:36 +08:00
util Use inner volume name instead of outer volume name for subpath directory 2018-03-21 17:13:38 -07:00
validation Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
vsphere_volume update bazel 2018-02-27 20:23:36 +08:00
BUILD update bazel 2018-02-27 20:23:36 +08:00
OWNERS Update volume OWNERS to reflect active sig-storage reviewers 2017-10-26 13:26:33 -07:00
doc.go
metrics_cached.go
metrics_du.go update import 2018-02-27 20:23:35 +08:00
metrics_du_test.go
metrics_errors.go
metrics_nil.go
metrics_nil_test.go
metrics_statfs.go update import 2018-02-27 20:23:35 +08:00
metrics_statfs_test.go
plugins.go update import 2018-02-27 20:23:35 +08:00
plugins_test.go correct the expected value in plugintest 2018-02-25 15:14:55 +08:00
volume.go BlockVolumesSupport: CRI, VolumeManager and OperationExecutor changes 2017-11-20 14:10:26 -05:00
volume_linux.go
volume_unsupported.go