Skip to content

Commit

Permalink
change image (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
satyakonduri authored Feb 24, 2023
1 parent 9d64e39 commit 4fd6b61
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 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: amaas-eos-mw1.cec.lab.emc.com:5028/centos:latest
image: docker.io/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: amaas-eos-mw1.cec.lab.emc.com:5028/centos:latest
image: docker.io/centos:latest
imagePullPolicy: IfNotPresent
volumeMounts:
- name: pvol-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 @@ -51,7 +51,7 @@ func (suite *PodTestSuite) TestMakePod() {
VolumeName: "vol",
MountPath: "/data",
ContainerName: "prov-test",
ContainerImage: "amaas-eos-mw1.cec.lab.emc.com:5028/centos:latest",
ContainerImage: "docker.io/centos:latest",
Command: []string{"/app/run.sh"},
}
podClient, err := suite.kubeClient.CreatePodClient("test-namespace")
Expand Down Expand Up @@ -81,7 +81,7 @@ func (suite *PodTestSuite) TestMakePod_default() {
podTmpl := podClient.MakePod(podconf)
suite.NoError(err)
suite.Equal("test-namespace", podTmpl.Namespace)
suite.Equal(podconf.ContainerImage, "amaas-eos-mw1.cec.lab.emc.com:5028/centos:latest")
suite.Equal(podconf.ContainerImage, "docker.io/centos:latest")
suite.Equal(podconf.Command, []string{"/bin/bash"})
}

Expand Down
18 changes: 9 additions & 9 deletions pkg/testcore/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func CapacityTrackingPodConfig(pvcNames []string, podName string) *pod.Config {
VolumeName: "vol",
MountPath: "/data",
ContainerName: "capacity-tracking-test",
ContainerImage: "amaas-eos-mw1.cec.lab.emc.com:5028/centos:latest",
ContainerImage: "docker.io/centos:latest",
Command: []string{`/bin/bash`},
Args: []string{"-c", "trap 'exit 0' SIGTERM;while true; do sleep 1; done"},
}
Expand All @@ -75,7 +75,7 @@ func ProvisioningPodConfig(pvcNames []string, podName string) *pod.Config {
VolumeName: "vol",
MountPath: "/data",
ContainerName: "prov-test",
ContainerImage: "amaas-eos-mw1.cec.lab.emc.com:5028/centos:latest",
ContainerImage: "docker.io/centos:latest",
Command: []string{`/bin/bash`},
Args: []string{"-c", "trap 'exit 0' SIGTERM;while true; do sleep 1; done"},
}
Expand All @@ -90,7 +90,7 @@ func VolumeHealthPodConfig(pvcNames []string, podName string) *pod.Config {
VolumeName: "vol",
MountPath: "/data",
ContainerName: "volume-health-test",
ContainerImage: "amaas-eos-mw1.cec.lab.emc.com:5028/centos:latest",
ContainerImage: "docker.io/centos:latest",
Command: []string{`/bin/bash`},
Args: []string{"-c", "trap 'exit 0' SIGTERM;while true; do sleep 1; done"},
}
Expand All @@ -105,7 +105,7 @@ func IoWritePodConfig(pvcNames []string, podName string) *pod.Config {
VolumeName: "vol",
MountPath: "/data",
ContainerName: "iowriter",
ContainerImage: "amaas-eos-mw1.cec.lab.emc.com:5028/centos:latest",
ContainerImage: "docker.io/centos:latest",
Command: []string{`/bin/bash`},
Args: []string{"-c", " trap 'exit 0' SIGTERM;while true; do sleep 1; done"},
}
Expand All @@ -118,7 +118,7 @@ func BlockSnapPodConfig(pvcNames []string) *pod.Config {
VolumeName: "vol",
MountPath: "/data",
ContainerName: "iowriter",
ContainerImage: "amaas-eos-mw1.cec.lab.emc.com:5028/centos:latest",
ContainerImage: "docker.io/centos:latest",
PvcNames: pvcNames,
Command: []string{`/bin/bash`},
Args: []string{"-c", " trap 'exit 0' SIGTERM;while true; do sleep 1; done"},
Expand All @@ -134,7 +134,7 @@ func MultiAttachPodConfig(pvcNames []string) *pod.Config {
VolumeName: "vol",
MountPath: "/data",
ContainerName: "iowriter",
ContainerImage: "amaas-eos-mw1.cec.lab.emc.com:5028/centos:latest",
ContainerImage: "docker.io/centos:latest",
Command: []string{`/bin/bash`},
Args: []string{"-c", " trap 'exit 0' SIGTERM;while true; do sleep 1; done"},
Capabilities: []v1.Capability{"SYS_ADMIN"},
Expand All @@ -152,7 +152,7 @@ func ScalingStsConfig(storageclass string, claimSize string, volumeNumber int, p
PodManagementPolicy: podPolicy,
ClaimSize: claimSize,
ContainerName: "scale-test",
ContainerImage: "amaas-eos-mw1.cec.lab.emc.com:5028/centos:latest",
ContainerImage: "docker.io/centos:latest",
NamePrefix: "sts-scale-test",
Command: []string{`/bin/bash`},
Args: []string{"-c", "trap 'exit 0' SIGTERM;while true; do sleep 1; done"},
Expand Down Expand Up @@ -183,7 +183,7 @@ func EphemeralPodConfig(podName string, csiVolSrc v1.CSIVolumeSource) *pod.Confi
VolumeName: "ephemeral-vol",
MountPath: "/data",
ContainerName: "prov-test",
ContainerImage: "amaas-eos-mw1.cec.lab.emc.com:5028/centos:latest",
ContainerImage: "docker.io/centos:latest",
Command: []string{`/bin/bash`},
Args: []string{"-c", "trap 'exit 0' SIGTERM;while true; do sleep 1; done"},
CSIVolumeSource: csiVolSrc,
Expand All @@ -201,7 +201,7 @@ func VolumeMigrateStsConfig(storageclass string, claimSize string, volumeNumber
PodManagementPolicy: podPolicy,
ClaimSize: claimSize,
ContainerName: "volume-migrate-test",
ContainerImage: "amaas-eos-mw1.cec.lab.emc.com:5028/centos:latest",
ContainerImage: "docker.io/centos:latest",
NamePrefix: "sts-volume-migrate-test",
Command: []string{`/bin/bash`},
Args: []string{"-c", "trap 'exit 0' SIGTERM;while true; do sleep 1; done"},
Expand Down

0 comments on commit 4fd6b61

Please sign in to comment.