@@ -35,6 +35,7 @@ const TEST_CONFIGURATIONS: { [name: string]: TestConfig } = {
35
35
"STANDARD_GKE_CLUSTER" ,
36
36
"CERT_MANAGER" ,
37
37
"GCP_MANAGED_DNS" ,
38
+ "CLUSTER_ISSUER" ,
38
39
"GENERATE_KOTS_CONFIG" ,
39
40
"INSTALL_GITPOD" ,
40
41
"CHECK_INSTALLATION" ,
@@ -49,6 +50,7 @@ const TEST_CONFIGURATIONS: { [name: string]: TestConfig } = {
49
50
PHASES : [
50
51
"STANDARD_GKE_CLUSTER" ,
51
52
"CERT_MANAGER" ,
53
+ "CLUSTER_ISSUER" ,
52
54
"GCP_MANAGED_DNS" ,
53
55
"GENERATE_KOTS_CONFIG" ,
54
56
"INSTALL_GITPOD" ,
@@ -66,11 +68,12 @@ const TEST_CONFIGURATIONS: { [name: string]: TestConfig } = {
66
68
PHASES : [
67
69
"STANDARD_K3S_CLUSTER_ON_GCP" ,
68
70
"CERT_MANAGER" ,
71
+ "CLUSTER_ISSUER" ,
69
72
"GENERATE_KOTS_CONFIG" ,
70
73
"INSTALL_GITPOD" ,
74
+ "RESULTS" ,
71
75
"CHECK_INSTALLATION" ,
72
76
"RUN_INTEGRATION_TESTS" ,
73
- "RESULTS" ,
74
77
"DESTROY" ,
75
78
] ,
76
79
} ,
@@ -80,6 +83,7 @@ const TEST_CONFIGURATIONS: { [name: string]: TestConfig } = {
80
83
PHASES : [
81
84
"STANDARD_K3S_CLUSTER_ON_GCP" ,
82
85
"CERT_MANAGER" ,
86
+ "CLUSTER_ISSUER" ,
83
87
"GENERATE_KOTS_CONFIG" ,
84
88
"INSTALL_GITPOD" ,
85
89
"CHECK_INSTALLATION" ,
@@ -169,18 +173,18 @@ const INFRA_PHASES: { [name: string]: InfraConfig } = {
169
173
description : `Generate KOTS Config file` ,
170
174
} ,
171
175
CLUSTER_ISSUER : {
172
- phase : ` setup-azure- cluster-issuer cloud= ${ cloud } ` ,
173
- makeTarget : "azure -issuer" ,
174
- description : " Deploys ClusterIssuer for azure" ,
176
+ phase : " setup-cluster-issuer" ,
177
+ makeTarget : `cluster -issuer cloud= ${ cloud } ` ,
178
+ description : ` Deploys ClusterIssuer for ${ cloud } ` ,
175
179
} ,
176
180
EXTERNALDNS : {
177
181
phase : "external-dns" ,
178
182
makeTarget : `external-dns cloud=${ cloud } ` ,
179
183
description : `Deploys external-dns with ${ cloud } provider` ,
180
184
} ,
181
185
ADD_NS_RECORD : {
182
- phase : ` add-ns-record cloud= ${ cloud } ` ,
183
- makeTarget : " add-ns-record" ,
186
+ phase : " add-ns-record" ,
187
+ makeTarget : ` add-ns-record cloud= ${ cloud } ` ,
184
188
description : "Adds NS record for subdomain under gitpod-self-hosted.com" ,
185
189
} ,
186
190
INSTALL_GITPOD_IGNORE_PREFLIGHTS : {
@@ -246,8 +250,7 @@ export async function installerTests(config: TestConfig) {
246
250
}
247
251
248
252
function callMakeTargets ( phase : string , description : string , makeTarget : string ) {
249
- werft . phase ( phase , `${ description } ` ) ;
250
- werft . log ( phase , `calling ${ makeTarget } ` ) ;
253
+ werft . phase ( phase , description ) ;
251
254
252
255
const response = exec ( `make -C ${ makefilePath } ${ makeTarget } ` , {
253
256
slice : "call-make-target" ,
@@ -257,12 +260,14 @@ function callMakeTargets(phase: string, description: string, makeTarget: string)
257
260
if ( response . code ) {
258
261
console . error ( `Error: ${ response . stderr } ` ) ;
259
262
werft . fail ( phase , "Operation failed" ) ;
260
- } else {
261
- werft . log ( phase , response . stdout . toString ( ) ) ;
262
- werft . done ( phase ) ;
263
+ return response . code ;
263
264
}
264
265
266
+ werft . log ( phase , response . stdout . toString ( ) ) ;
267
+ werft . done ( phase ) ;
268
+
265
269
return response . code ;
270
+
266
271
}
267
272
268
273
function randomize ( resource : string , platform : string ) : string {
0 commit comments