e2e: use centos as image for normal user validation

Reduce the number of images that get pulled from Docker Hub. Use the
official CentOS container registry instead.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna 2020-11-19 14:49:59 +05:30 committed by mergify[bot]
parent 8d86bac9b7
commit 168526a906

View File

@ -276,7 +276,7 @@ func validateNormalUserPVCAccess(pvcPath string, f *framework.Framework) error {
Containers: []v1.Container{ Containers: []v1.Container{
{ {
Name: "write-pod", Name: "write-pod",
Image: "alpine", Image: "registry.centos.org/centos:latest",
Command: []string{"/bin/sleep", "999999"}, Command: []string{"/bin/sleep", "999999"},
SecurityContext: &v1.SecurityContext{ SecurityContext: &v1.SecurityContext{
RunAsUser: &user, RunAsUser: &user,