kubernetes/pkg/volume
Kubernetes Submit Queue b758341a04
Merge pull request #62646 from cofyc/reporteventtoapiserver
Automatic merge from submit-queue (batch tested with PRs 62694, 62569, 62646, 61633, 62433). 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>.

Report events to apiserver in local volume plugin.

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

See https://github.com/kubernetes/kubernetes/pull/62102#discussion_r179238429.

Report events to apiserver in local volume plugin.

- Add VolumeHost.GetEventRecorder() method
- Add related e2e tests

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #62248

**Special notes for your reviewer**:

Example output of `kubectl describe pods`:

```
Events:
  Type     Reason                 Age   From                Message
  ----     ------                 ----  ----                -------
  Normal   Scheduled              7s    default-scheduler   Successfully assigned e2e-tests-persistent-local-volumes-test-x4h5x/security-context-670da435-4174-11e8-9098-000c29bb0377 to 127.0.0.1
  Warning  AlreadyMountedVolume   7s    kubelet, 127.0.0.1  The requested fsGroup is 4321, but the volume local-pvfbb76 has GID 1234. The volume may not be shareable.
  Normal   SuccessfulMountVolume  7s    kubelet, 127.0.0.1  MountVolume.SetUp succeeded for volume "default-token-996xr"
  Normal   SuccessfulMountVolume  7s    kubelet, 127.0.0.1  MountVolume.SetUp succeeded for volume "local-pvfbb76"
  Normal   Pulled                 6s    kubelet, 127.0.0.1  Container image "k8s.gcr.io/busybox:1.24" already present on machine
  Normal   Created                6s    kubelet, 127.0.0.1  Created container
  Normal   Started                6s    kubelet, 127.0.0.1  Started container
```

**Release note**:

```release-note
NONE
```
2018-04-18 14:44:17 -07:00
..
aws_ebs update bazel 2018-02-27 20:23:36 +08:00
azure_dd fix devicePath update issue in Azure WaitForAttach func 2018-04-16 05:52:16 +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 Merge pull request #62486 from vladimirvivien/csi-fsGroup-fix 2018-04-13 16:01:06 -07:00
downwardapi Use filepath.Clean() instead of path.Clean() 2018-04-17 10:44:30 +08:00
empty_dir Use consts defined in api instead of defining another ones. 2018-02-28 00:40:58 +08:00
fc Return error in mount_unsupported for unsupported platforms 2018-03-29 14:17:07 -07:00
flexvolume Merge pull request #58519 from linyouchong/lyc-probe 2018-04-02 17:07:01 -07: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 Revert "git: Use VolumeHost.GetExec() to execute stuff in volume plugins" 2018-04-11 14:44:20 +02:00
glusterfs This patch add a new parameter called snapfactor to glusterfs 2018-04-18 11:16:46 +05:30
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 Report events to apiserver in local volume plugin. 2018-04-18 11:19:36 +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 Use filepath.Clean() instead of path.Clean() 2018-04-17 10:44:30 +08:00
rbd fix typo that redefines variable and breaks code 2018-04-05 13:49:02 +00:00
scaleio Merge pull request #59035 from YuxiJin-tobeyjin/fix-format-error-for-sioUtil-ut 2018-04-09 06:56:05 -07: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 Report events to apiserver in local volume plugin. 2018-04-18 11:19:36 +08:00
util Use filepath.Clean() instead of path.Clean() 2018-04-17 10:44:30 +08: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 Report events to apiserver in local volume plugin. 2018-04-18 11:19:36 +08:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
metrics_cached.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
metrics_du.go update import 2018-02-27 20:23:35 +08:00
metrics_du_test.go switch from package syscall to x/sys/unix 2017-07-21 12:14:42 +02:00
metrics_errors.go Disambiguate unsupported metrics from metrics errors 2016-09-15 10:05:30 +10:00
metrics_nil.go Disambiguate unsupported metrics from metrics errors 2016-09-15 10:05:30 +10:00
metrics_nil_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
metrics_statfs.go update import 2018-02-27 20:23:35 +08:00
metrics_statfs_test.go add volume timestamps 2017-03-02 15:01:59 -08:00
OWNERS Update volume OWNERS to reflect active sig-storage reviewers 2017-10-26 13:26:33 -07:00
plugins.go Report events to apiserver in local volume plugin. 2018-04-18 11:19:36 +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 Fixes cross platform build failure 2017-08-26 09:58:51 -04:00
volume_unsupported.go Fixes cross platform build failure 2017-08-26 09:58:51 -04:00