mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
e2e: loadAppDeployment now sets ImagePullPolicy to PullIfNotPresent
Fixes: #2889 Signed-off-by: Robert Vasek <robert.vasek@cern.ch>
This commit is contained in:
parent
ac6bfeb6ef
commit
e9c6fab287
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user