Use PullIfNotPresent in tests
Docker.io rate limiting applies to 'busybox' too
@@ -359,6 +359,7 @@ func (c *Catalog) Sleep1hPodSpec() corev1.PodSpec {
{
Name: "busybox",
Image: "busybox",
+ ImagePullPolicy: corev1.PullIfNotPresent,
Command: []string{"sleep", "3600"},
},
},
@@ -383,6 +384,7 @@ func (c *Catalog) PodWithTailLogsContainer(podName string, parentPodCmd string,
{
Name: parentCName,
Image: dockerImg,
+ ImagePullPolicy: corev1.PullIfNotPresent,
VolumeMounts: []corev1.VolumeMount{
{
Name: bpmconverter.VolumeSysDirName,
@@ -400,6 +402,7 @@ func (c *Catalog) PodWithTailLogsContainer(podName string, parentPodCmd string,
{
Name: sidecardCName,
Image: dockerImg,
+ ImagePullPolicy: corev1.PullIfNotPresent,
VolumeMounts: []corev1.VolumeMount{
{
Name: bpmconverter.VolumeSysDirName,
@@ -508,6 +511,7 @@ func (c *Catalog) EchoContainer(name string) corev1.Container {
return corev1.Container{
Name: name,
Image: "busybox",
+ ImagePullPolicy: corev1.PullIfNotPresent,
Command: []string{"echo"},
}
}
