e2e: loadAppDeployment now sets ImagePullPolicy to PullIfNotPresent

Fixes: #2889

Signed-off-by: Robert Vasek <robert.vasek@cern.ch>
This commit is contained in:
Robert Vasek 2022-02-23 16:09:42 +01:00 committed by mergify[bot]
parent ac6bfeb6ef
commit e9c6fab287

View File

@ -23,6 +23,7 @@ import (
"time"
appsv1 "k8s.io/api/apps/v1"
v1 "k8s.io/api/core/v1"
apierrs "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/wait"
@ -62,6 +63,10 @@ func loadAppDeployment(path string) (*appsv1.Deployment, error) {
return nil, err
}
for i := range deploy.Spec.Template.Spec.Containers {
deploy.Spec.Template.Spec.Containers[i].ImagePullPolicy = v1.PullIfNotPresent
}
return &deploy, nil
}