@@ -60,21 +60,31 @@ func getTestArch() string {
60
60
61
61
// initImageNames returns the map with arch dependent image names for e2e tests
62
62
func initImageNames () map [int ]string {
63
- if getTestArch () == "s390x" {
63
+ switch getTestArch () {
64
+ case "s390x" :
64
65
return map [int ]string {
65
66
busyboxImage : "busybox@sha256:4f47c01fa91355af2865ac10fef5bf6ec9c7f42ad2321377c21e844427972977" ,
66
67
registryImage : "ibmcom/registry:2.6.2.5" ,
67
68
kubectlImage : "ibmcom/kubectl:v1.13.9" ,
68
69
helmImage : "ibmcom/alpine-helm-s390x:latest" ,
69
70
kanikoImage : "gcr.io/kaniko-project/executor:s390x-9ed158c1f63a059cde4fd5f8b95af51d452d9aa7" ,
70
71
}
71
- }
72
- return map [int ]string {
73
- busyboxImage : "busybox@sha256:895ab622e92e18d6b461d671081757af7dbaa3b00e3e28e12505af7817f73649" ,
74
- registryImage : "registry" ,
75
- kubectlImage : "lachlanevenson/k8s-kubectl" ,
76
- helmImage : "alpine/helm:3.1.2" ,
77
- kanikoImage : "gcr.io/kaniko-project/executor:v1.3.0" ,
72
+ case "ppc64le" :
73
+ return map [int ]string {
74
+ busyboxImage : "busybox@sha256:4f47c01fa91355af2865ac10fef5bf6ec9c7f42ad2321377c21e844427972977" ,
75
+ registryImage : "ppc64le/registry:2" ,
76
+ kubectlImage : "ibmcom/kubectl:v1.13.9" ,
77
+ helmImage : "ibmcom/helm-ppc64le:latest" ,
78
+ kanikoImage : "ibmcom/kaniko-project-executor-ppc64le:v0.17.1" ,
79
+ }
80
+ default :
81
+ return map [int ]string {
82
+ busyboxImage : "busybox@sha256:895ab622e92e18d6b461d671081757af7dbaa3b00e3e28e12505af7817f73649" ,
83
+ registryImage : "registry" ,
84
+ kubectlImage : "lachlanevenson/k8s-kubectl" ,
85
+ helmImage : "alpine/helm:3.1.2" ,
86
+ kanikoImage : "gcr.io/kaniko-project/executor:v1.3.0" ,
87
+ }
78
88
}
79
89
}
80
90
@@ -94,7 +104,9 @@ func getImagesMappingRE() map[*regexp.Regexp][]byte {
94
104
// imageNamesMapping provides mapping between image name in the examples yaml files and desired image name for specific arch.
95
105
// by default empty map is returned.
96
106
func imageNamesMapping () map [string ]string {
97
- if getTestArch () == "s390x" {
107
+
108
+ switch getTestArch () {
109
+ case "s390x" :
98
110
return map [string ]string {
99
111
"registry" : getTestImage (registryImage ),
100
112
"node" : "node:alpine3.11" ,
@@ -106,14 +118,42 @@ func imageNamesMapping() map[string]string {
106
118
"stedolan/jq" : "ibmcom/jq-s390x:latest" ,
107
119
"gcr.io/kaniko-project/executor:v1.3.0" : getTestImage (kanikoImage ),
108
120
}
121
+ case "ppc64le" :
122
+ return map [string ]string {
123
+ "registry" : getTestImage (registryImage ),
124
+ "node" : "node:alpine3.11" ,
125
+ "lachlanevenson/k8s-kubectl" : getTestImage (kubectlImage ),
126
+ "gcr.io/cloud-builders/git" : "alpine/git:latest" ,
127
+ "docker:dind" : "ibmcom/docker-ppc64le:19.03-dind" ,
128
+ "docker" : "docker:18.06.3" ,
129
+ "mikefarah/yq" : "danielxlee/yq:2.4.0" ,
130
+ "stedolan/jq" : "ibmcom/jq-ppc64le:latest" ,
131
+ "gcr.io/kaniko-project/executor:v1.3.0" : getTestImage (kanikoImage ),
132
+ }
133
+
109
134
}
110
135
111
136
return make (map [string ]string )
112
137
}
113
138
114
139
// initExcludedTests provides list of excluded tests for e2e and exanples tests
115
140
func initExcludedTests () sets.String {
116
- if getTestArch () == "s390x" {
141
+
142
+ switch getTestArch () {
143
+ case "s390x" :
144
+ return sets .NewString (
145
+ //examples
146
+ "TestExamples/v1alpha1/taskruns/build-gcs-targz" ,
147
+ "TestExamples/v1beta1/taskruns/build-gcs-targz" ,
148
+ "TestExamples/v1beta1/taskruns/build-gcs-zip" ,
149
+ "TestExamples/v1alpha1/taskruns/build-gcs-zip" ,
150
+ "TestExamples/v1alpha1/taskruns/gcs-resource" ,
151
+ "TestExamples/v1beta1/taskruns/gcs-resource" ,
152
+ "TestExamples/v1beta1/pipelineruns/pipelinerun" ,
153
+ //e2e
154
+ "TestHelmDeployPipelineRun" ,
155
+ )
156
+ case "ppc64le" :
117
157
return sets .NewString (
118
158
//examples
119
159
"TestExamples/v1alpha1/taskruns/build-gcs-targz" ,
@@ -127,6 +167,7 @@ func initExcludedTests() sets.String {
127
167
"TestHelmDeployPipelineRun" ,
128
168
)
129
169
}
170
+
130
171
return sets .NewString ()
131
172
}
132
173
0 commit comments