mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-16 07:13:53 +00:00
Merge pull request #117286 from humblec/e2e-improvements
remove `expansionFailed` const in volume expansion and avoid var name collision
This commit is contained in:
commit
0b53923a7a
@ -104,8 +104,8 @@ var _ = utils.SIGDescribe("CSI Mock volume fsgroup policies", func() {
|
|||||||
// Delete the created file. This step is mandatory, as the mock driver
|
// Delete the created file. This step is mandatory, as the mock driver
|
||||||
// won't clean up the contents automatically.
|
// won't clean up the contents automatically.
|
||||||
defer func() {
|
defer func() {
|
||||||
delete := fmt.Sprintf("rm -fr %s", dirName)
|
deleteDir := fmt.Sprintf("rm -fr %s", dirName)
|
||||||
_, _, err = e2evolume.PodExec(f, pod, delete)
|
_, _, err = e2evolume.PodExec(f, pod, deleteDir)
|
||||||
framework.ExpectNoError(err, "failed: deleting the directory: %s", err)
|
framework.ExpectNoError(err, "failed: deleting the directory: %s", err)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
@ -43,7 +43,6 @@ type expansionStatus int
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
expansionSuccess = iota
|
expansionSuccess = iota
|
||||||
expansionFailed
|
|
||||||
expansionFailedOnController
|
expansionFailedOnController
|
||||||
expansionFailedOnNode
|
expansionFailedOnNode
|
||||||
expansionFailedMissingStagingPath
|
expansionFailedMissingStagingPath
|
||||||
|
Loading…
Reference in New Issue
Block a user