Skip to content

Commit

Permalink
use quay based centos image
Browse files Browse the repository at this point in the history
  • Loading branch information
chimanjain committed Sep 9, 2024
1 parent 00977d0 commit 8c64dff
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion pkg/k8sclient/manifests/test_pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
claimName: test-pvc
containers:
- name: test
image: docker.io/centos:latest
image: quay.io/centos/centos:latest
imagePullPolicy: IfNotPresent
volumeMounts:
- name: pv-storage
Expand Down
2 changes: 1 addition & 1 deletion pkg/k8sclient/manifests/test_sts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
spec:
containers:
- name: test
image: docker.io/centos:latest
image: quay.io/centos/centos:latest
imagePullPolicy: IfNotPresent
volumeMounts:
- name: pvol-0
Expand Down
4 changes: 2 additions & 2 deletions pkg/k8sclient/resources/pod/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (c *Client) MakePod(config *Config) *v1.Pod {
}

if len(config.ContainerImage) == 0 {
config.ContainerImage = "docker.io/centos:latest"
config.ContainerImage = "quay.io/centos/centos:latest"
}

if len(config.Command) == 0 {
Expand Down Expand Up @@ -529,7 +529,7 @@ func (c *Client) MakeEphemeralPod(config *Config) *v1.Pod {
}

if len(config.ContainerImage) == 0 {
config.ContainerImage = "docker.io/centos:latest"
config.ContainerImage = "quay.io/centos/centos:latest"
}

if len(config.Command) == 0 {
Expand Down
4 changes: 2 additions & 2 deletions pkg/k8sclient/resources/pod/pod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (suite *PodTestSuite) TestMakePod() {
VolumeName: "vol",
MountPath: "/data",
ContainerName: "prov-test",
ContainerImage: "docker.io/centos:latest",
ContainerImage: "quay.io/centos/centos:latest",
Command: []string{"/app/run.sh"},
}
podClient, err := suite.kubeClient.CreatePodClient("test-namespace")
Expand Down Expand Up @@ -82,7 +82,7 @@ func (suite *PodTestSuite) TestMakePod_default() {
podTmpl := podClient.MakePod(podconf)
suite.NoError(err)
suite.Equal("test-namespace", podTmpl.Namespace)
suite.Equal(podconf.ContainerImage, "docker.io/centos:latest")
suite.Equal(podconf.ContainerImage, "quay.io/centos/centos:latest")
suite.Equal(podconf.Command, []string{"/bin/bash"})
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/k8sclient/resources/statefulset/sts.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func (c *Client) MakeStatefulSet(config *Config) *appsv1.StatefulSet {
}

if len(config.ContainerImage) == 0 {
config.ContainerImage = "docker.io/centos:latest"
config.ContainerImage = "quay.io/centos/centos:latest"
}

if len(config.Command) == 0 {
Expand Down
4 changes: 2 additions & 2 deletions pkg/testcore/suites/functional-suites.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ func (ep *EphemeralVolumeSuite) Run(ctx context.Context, _ string, clients *k8sc
}

if ep.Image == "" {
ep.Image = "docker.io/centos:latest"
ep.Image = "quay.io/centos/centos:latest"
log.Infof("Using default image: %s", ep.Image)
}

Expand Down Expand Up @@ -845,7 +845,7 @@ func (cts *CapacityTrackingSuite) Run(ctx context.Context, storageClass string,
}

if cts.Image == "" {
cts.Image = "docker.io/centos:latest"
cts.Image = "quay.io/centos/centos:latest"
log.Infof("Using default image: %s", cts.Image)
}

Expand Down
26 changes: 13 additions & 13 deletions pkg/testcore/suites/perf-suites.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func (ps *ProvisioningSuite) Run(ctx context.Context, storageClass string, clien
ps.VolumeSize = "3Gi"
}
if ps.Image == "" {
ps.Image = "docker.io/centos:latest"
ps.Image = "quay.io/centos/centos:latest"
log.Infof("Using default image: %s", ps.Image)
}
ps.validateCustomPodName()
Expand Down Expand Up @@ -396,7 +396,7 @@ func (rrps *RemoteReplicationProvisioningSuite) Run(ctx context.Context, storage
rrps.VolumeSize = "3Gi"
}
if rrps.Image == "" {
rrps.Image = "docker.io/centos:latest"
rrps.Image = "quay.io/centos/centos:latest"
log.Infof("Using default image: %s", rrps.Image)
}

Expand Down Expand Up @@ -903,7 +903,7 @@ func (ss *ScalingSuite) Run(ctx context.Context, storageClass string, clients *k
ss.VolumeSize = "3Gi"
}
if ss.Image == "" {
ss.Image = "docker.io/centos:latest"
ss.Image = "quay.io/centos/centos:latest"
log.Infof("Using default image: %s", ss.Image)
}

Expand Down Expand Up @@ -1037,7 +1037,7 @@ func (vis *VolumeIoSuite) Run(ctx context.Context, storageClass string, clients
}

if vis.Image == "" {
vis.Image = "docker.io/centos:latest"
vis.Image = "quay.io/centos/centos:latest"
log.Infof("Using default image: %s", vis.Image)
}

Expand Down Expand Up @@ -1202,7 +1202,7 @@ func (vgs *VolumeGroupSnapSuite) Run(ctx context.Context, storageClass string, c
}

if vgs.Image == "" {
vgs.Image = "docker.io/centos:latest"
vgs.Image = "quay.io/centos/centos:latest"
log.Infof("Using default image: %s", vgs.Image)
}

Expand Down Expand Up @@ -1350,7 +1350,7 @@ func (ss *SnapSuite) Run(ctx context.Context, storageClass string, clients *k8sc
ss.VolumeSize = "3Gi"
}
if ss.Image == "" {
ss.Image = "docker.io/centos:latest"
ss.Image = "quay.io/centos/centos:latest"
log.Infof("Using default image: %s", ss.Image)
}

Expand Down Expand Up @@ -1676,7 +1676,7 @@ func (rs *ReplicationSuite) Run(ctx context.Context, storageClass string, client
rs.VolumeSize = "3Gi"
}
if rs.Image == "" {
rs.Image = "docker.io/centos:latest"
rs.Image = "quay.io/centos/centos:latest"
log.Infof("Using default image: %s", rs.Image)
}

Expand Down Expand Up @@ -1944,7 +1944,7 @@ func (ves *VolumeExpansionSuite) Run(ctx context.Context, storageClass string, c
ves.PodNumber = 1
}
if ves.Image == "" {
ves.Image = "docker.io/centos:latest"
ves.Image = "quay.io/centos/centos:latest"
log.Infof("Using default image: %s", ves.Image)
}

Expand Down Expand Up @@ -2236,7 +2236,7 @@ func (vh *VolumeHealthMetricsSuite) Run(ctx context.Context, storageClass string
vh.PodNumber = 1
}
if vh.Image == "" {
vh.Image = "docker.io/centos:latest"
vh.Image = "quay.io/centos/centos:latest"
log.Infof("Using default image: %s", vh.Image)
}

Expand Down Expand Up @@ -2446,7 +2446,7 @@ func (cs *CloneVolumeSuite) Run(ctx context.Context, storageClass string, client
cs.VolumeSize = "3Gi"
}
if cs.Image == "" {
cs.Image = "docker.io/centos:latest"
cs.Image = "quay.io/centos/centos:latest"
log.Infof("Using default image: %s", cs.Image)
}
clonedVolName := ""
Expand Down Expand Up @@ -2609,7 +2609,7 @@ func (mas *MultiAttachSuite) Run(ctx context.Context, storageClass string, clien
mas.PodNumber = 2
}
if mas.Image == "" {
mas.Image = "docker.io/centos:latest"
mas.Image = "quay.io/centos/centos:latest"
log.Infof("Using default image: %s", mas.Image)
}

Expand Down Expand Up @@ -2874,7 +2874,7 @@ func (bss *BlockSnapSuite) Run(ctx context.Context, storageClass string, clients
bss.VolumeSize = "3Gi"
}
if bss.Image == "" {
bss.Image = "docker.io/centos:latest"
bss.Image = "quay.io/centos/centos:latest"
log.Infof("Using default image: %s", bss.Image)
}
pvcClient := clients.PVCClient
Expand Down Expand Up @@ -3173,7 +3173,7 @@ func (vms *VolumeMigrateSuite) Run(ctx context.Context, storageClass string, cli
vms.PodNumber = 3
}
if vms.Image == "" {
vms.Image = "docker.io/centos:latest"
vms.Image = "quay.io/centos/centos:latest"
log.Infof("Using default image: %s", vms.Image)
}

Expand Down

0 comments on commit 8c64dff

Please sign in to comment.