mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
e2e: set imagePullPolicy to ifNotPresent
If the imagePullPolicy is not set and the image
tag is empty or latest the image is always pulled.
This commit sets the policy to pull image if not
present.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 8d86bac9b7
)
This commit is contained in:
parent
19204ea371
commit
1fd09d8637
@ -150,6 +150,9 @@ func loadApp(path string) (*v1.Pod, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
for i := range app.Spec.Containers {
|
||||
app.Spec.Containers[i].ImagePullPolicy = v1.PullIfNotPresent
|
||||
}
|
||||
return &app, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user