Merge pull request #59348 from stewart-yu/fixkuberoot

Automatic merge from submit-queue (batch tested with PRs 55986, 59375, 59334, 59348, 58027). 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>.

add ${KUBE-ROOT} for file directory

**What this PR does / why we need it**:
If we using following command
```shell
cd hack
./test-update-storage-objects.sh
```
it would throw err about unable find file `examples\persistent-volume-provisioning\rbd\rbd-storage-class.yaml`.
I think we should add `${KUBE-ROOT} `for file directory, so that we can run command in relative directory.

**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 #

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
This commit is contained in:
Kubernetes Submit Queue
2018-02-05 21:14:40 -08:00
committed by GitHub

View File

@@ -130,7 +130,7 @@ for test in ${tests[@]}; do
source_file=${test_data[0]} source_file=${test_data[0]}
kube::log::status "Creating ${source_file}" kube::log::status "Creating ${source_file}"
${KUBECTL} create -f "${source_file}" ${KUBECTL} create -f "${KUBE_ROOT}/${source_file}"
# Verify that the storage version is the old version # Verify that the storage version is the old version
resource=${test_data[1]} resource=${test_data[1]}