Skip to content

Commit a4bf2ba

Browse files
authored
move image to ghcr to avoid dockerhub throttle (#5485)
Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>
1 parent cbb6e9c commit a4bf2ba

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

test/e2e/framework/deployment.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,5 +237,6 @@ func (c *DeploymentClient) WaitToDisappear(name string, _, timeout time.Duration
237237
func MakeDeployment(name string, replicas int32, podLabels, podAnnotations map[string]string, containerName, image string, strategyType appsv1.DeploymentStrategyType) *appsv1.Deployment {
238238
deploy := deployment.NewDeployment(name, replicas, podLabels, containerName, image, strategyType)
239239
deploy.Spec.Template.Annotations = podAnnotations
240+
deploy.Spec.Template.Spec.Containers[0].ImagePullPolicy = corev1.PullIfNotPresent
240241
return deploy
241242
}

test/e2e/framework/image.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package framework
22

33
const (
4-
PauseImage = "kubeovn/pause:3.9"
5-
AgnhostImage = "kubeovn/agnhost:2.47"
4+
PauseImage = "ghcr.io/kubeovn/pause:3.9"
5+
AgnhostImage = "ghcr.io/kubeovn/agnhost:2.47"
66
)

test/e2e/framework/statefulset.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,5 +180,6 @@ func (c *StatefulSetClient) RolloutStatus(name string) *appsv1.StatefulSet {
180180
func MakeStatefulSet(name, svcName string, replicas int32, labels map[string]string, image string) *appsv1.StatefulSet {
181181
sts := statefulset.NewStatefulSet(name, "", svcName, replicas, nil, nil, labels)
182182
sts.Spec.Template.Spec.Containers[0].Image = image
183+
sts.Spec.Template.Spec.Containers[0].ImagePullPolicy = corev1.PullIfNotPresent
183184
return sts
184185
}

0 commit comments

Comments
 (0)