Files
kubernetes/pkg/volume
Kubernetes Submit Queue 6571be1311 Merge pull request #60962 from technicianted/flex_race_fix
Automatic merge from submit-queue. 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>.

Added missing error check that could cause kubelet to crash

**What this PR does / why we need it**:
Adds missing error check. An error can happen due to a race condition when watched files change, or become inaccessible. This can happen if a file was added to the driver directory then quickly removed, in which case the callback will be called with non-nil `err` and nil `info`, which is not checked, causing kubelet to crash.

**Which issue(s) this PR fixes**:
Fixes #60861

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2018-03-12 16:17:02 -07:00
..
2018-02-27 20:23:36 +08:00
2018-02-27 20:23:36 +08:00
2018-02-27 20:23:35 +08:00
2018-02-27 20:23:36 +08:00
2018-03-11 11:16:20 +08:00
2018-02-27 20:23:36 +08:00
2018-03-09 21:03:22 -08:00
2018-02-27 20:23:36 +08:00
2018-02-27 20:23:35 +08:00
2018-02-27 20:23:36 +08:00
2018-03-05 09:14:44 +01:00
2018-02-27 20:23:36 +08:00
2018-02-27 20:23:36 +08:00
2018-02-27 20:23:36 +08:00
2018-02-27 20:23:36 +08:00
2018-02-27 20:23:36 +08:00
2018-02-27 20:23:36 +08:00
2018-02-27 20:23:36 +08:00
2018-02-27 20:23:36 +08:00
2018-02-27 20:23:36 +08:00
2018-03-05 09:14:44 +01:00
2018-02-27 20:23:36 +08:00
2018-02-27 20:23:36 +08:00
2016-07-16 13:48:21 -04:00
2018-02-27 20:23:35 +08:00
2017-03-02 15:01:59 -08:00
2018-02-27 20:23:35 +08:00
2018-02-27 20:23:35 +08:00