You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .werft/aks-installer-tests.yaml
+48-1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,36 @@
1
1
# debug using `werft run github -f -s .werft/installer-tests.ts -j .werft/aks-installer-tests.yaml -a debug=true`
2
+
args:
3
+
- name: subdomain
4
+
desc: "Subdomain to use. A terraform workspace of same name will be used"
5
+
required: false
6
+
default: ""
7
+
- name: channel
8
+
desc: "Replicated channel to use"
9
+
required: false
10
+
default: ""
11
+
- name: replicatedApp
12
+
desc: "Replicated App to use"
13
+
required: false
14
+
default: ""
15
+
- name: version
16
+
desc: "Version of gitpod to install(in the case of upgrade tests, this is the initial install version and will later get upgraded to latest"
17
+
required: false
18
+
default: ""
19
+
- name: skipTests
20
+
desc: "Set this to true to skip integration tests"
21
+
required: false
22
+
default: false
23
+
- name: upgrade
24
+
desc: "Set this to true to run KOTS upgrade from the specified version to the latest version"
25
+
required: false
26
+
default: false
27
+
- name: preview
28
+
desc: "Setting preview to true creates a self-hosted preview for you to consume"
29
+
required: false
30
+
default: true
31
+
- name: deps
32
+
desc: "Specify if the dependencies(storage, db, registry) should be external or incluster. If unset, a random combination will be chosen. options:[external, incluster]"
Copy file name to clipboardExpand all lines: .werft/eks-installer-tests.yaml
+50-1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,36 @@
1
1
# debug using `werft run github -f -s .werft/installer-tests.ts -j .werft/eks-installer-tests.yaml -a debug=true`
2
+
args:
3
+
- name: subdomain
4
+
desc: "Subdomain to use. A terraform workspace of same name will be used"
5
+
required: false
6
+
default: ""
7
+
- name: channel
8
+
desc: "Replicated channel to use"
9
+
required: false
10
+
default: ""
11
+
- name: replicatedApp
12
+
desc: "Replicated App to use"
13
+
required: false
14
+
default: ""
15
+
- name: version
16
+
desc: "Version of gitpod to install(in the case of upgrade tests, this is the initial install version and will later get upgraded to latest"
17
+
required: false
18
+
default: ""
19
+
- name: skipTests
20
+
desc: "Set this to true to skip integration tests"
21
+
required: false
22
+
default: false
23
+
- name: upgrade
24
+
desc: "Set this to true to run KOTS upgrade from the specified version to the latest version"
25
+
required: false
26
+
default: false
27
+
- name: preview
28
+
desc: "Setting preview to true creates a self-hosted preview for you to consume"
29
+
required: false
30
+
default: true
31
+
- name: deps
32
+
desc: "Specify if the dependencies(storage, db, registry) should be external or incluster. If unset, a random combination will be chosen. options:[external, incluster]"
33
+
required: false
2
34
pod:
3
35
serviceAccount: werft
4
36
affinity:
@@ -68,6 +100,16 @@ pod:
68
100
secretKeyRef:
69
101
name: slack-webhook-urls
70
102
key: self_hosted_jobs
103
+
- name: REPLICATED_API_TOKEN
104
+
valueFrom:
105
+
secretKeyRef:
106
+
name: replicated
107
+
key: token
108
+
- name: REPLICATED_APP
109
+
valueFrom:
110
+
secretKeyRef:
111
+
name: replicated
112
+
key: app
71
113
command:
72
114
- bash
73
115
- -c
@@ -78,7 +120,14 @@ pod:
78
120
sudo chown -R gitpod:gitpod /workspace
79
121
sudo apt update && apt install gettext-base
80
122
81
-
export TF_VAR_TEST_ID="$(echo $RANDOM | md5sum | head -c 5; echo)-aws"
123
+
124
+
export domain="{{ .Annotations.subdomain }}"
125
+
126
+
if [[ "$domain" == "<no value>" ]]; then
127
+
export TF_VAR_TEST_ID="$(echo $RANDOM | md5sum | head -c 5; echo)-aws"
Copy file name to clipboardExpand all lines: .werft/gke-installer-tests.yaml
+48-1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,36 @@
1
1
# debug using `werft run github -f -s .werft/installer-tests.ts -j .werft/gke-installer-tests.yaml -a debug=true`
2
+
args:
3
+
- name: subdomain
4
+
desc: "Subdomain to use. A terraform workspace of same name will be used"
5
+
required: false
6
+
default: ""
7
+
- name: channel
8
+
desc: "Replicated channel to use"
9
+
required: false
10
+
default: ""
11
+
- name: replicatedApp
12
+
desc: "Replicated App to use"
13
+
required: false
14
+
default: ""
15
+
- name: version
16
+
desc: "Version of gitpod to install(in the case of upgrade tests, this is the initial install version and will later get upgraded to latest"
17
+
required: false
18
+
default: ""
19
+
- name: skipTests
20
+
desc: "Set this to true to skip integration tests"
21
+
required: false
22
+
default: false
23
+
- name: upgrade
24
+
desc: "Set this to true to run KOTS upgrade from the specified version to the latest version"
25
+
required: false
26
+
default: false
27
+
- name: preview
28
+
desc: "Setting preview to true creates a self-hosted preview for you to consume"
29
+
required: false
30
+
default: true
31
+
- name: deps
32
+
desc: "Specify if the dependencies(storage, db, registry) should be external or incluster. If unset, a random combination will be chosen. options:[external, incluster]"
33
+
required: false
2
34
pod:
3
35
serviceAccount: werft
4
36
affinity:
@@ -55,6 +87,16 @@ pod:
55
87
secretKeyRef:
56
88
name: slack-webhook-urls
57
89
key: self_hosted_jobs
90
+
- name: REPLICATED_API_TOKEN
91
+
valueFrom:
92
+
secretKeyRef:
93
+
name: replicated
94
+
key: token
95
+
- name: REPLICATED_APP
96
+
valueFrom:
97
+
secretKeyRef:
98
+
name: replicated
99
+
key: app
58
100
command:
59
101
- bash
60
102
- -c
@@ -65,7 +107,12 @@ pod:
65
107
sudo chown -R gitpod:gitpod /workspace
66
108
sudo apt update && apt install gettext-base
67
109
68
-
export TF_VAR_TEST_ID=$(echo $RANDOM | md5sum | head -c 5; echo)-gcp
110
+
export domain="{{ .Annotations.subdomain }}"
111
+
if [[ "$domain" == "<no value>" ]]; then
112
+
export TF_VAR_TEST_ID=$(echo $RANDOM | md5sum | head -c 5; echo)-gcp
constpreview: string=annotations.preview||"false";// setting to true will not destroy the setup
16
18
constupgrade: string=annotations.upgrade||"false";// setting to true will not KOTS upgrade to the latest version. Set the channel to beta or stable in this case.
17
19
constskipTests: string=annotations.skipTests||"false";// setting to true skips the integration tests
18
20
constdeps: string=annotations.deps||"";// options: ["external", "internal"] setting to `external` will ensure that all resource dependencies(storage, db, registry) will be external. if unset, a random selection will be used
description: "Adds NS record for subdomain under tests.gitpod-self-hosted.com",
172
+
description: `Adds NS record for subdomain under ${baseDomain}`,
169
173
},
170
174
INSTALL_GITPOD_IGNORE_PREFLIGHTS: {
171
175
phase: "install-gitpod-without-preflights",
172
-
makeTarget: `kots-install channel=${channel} version=${version} preflights=false`,// this is a bit of a hack, for now we pass params like this
176
+
makeTarget: `kots-install app=${kotsApp}channel=${channel} version=${version} preflights=false`,// this is a bit of a hack, for now we pass params like this
173
177
description: "Install gitpod using kots community edition without preflights",
Copy file name to clipboardExpand all lines: .werft/k3s-installer-tests.yaml
+49-1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,36 @@
1
1
# debug using `werft run github -f -s .werft/installer-tests.ts -j .werft/k3s-installer-tests.yaml -a debug=true`
2
+
args:
3
+
- name: subdomain
4
+
desc: "Subdomain to use. A terraform workspace of same name will be used"
5
+
required: false
6
+
default: ""
7
+
- name: channel
8
+
desc: "Replicated channel to use"
9
+
required: false
10
+
default: ""
11
+
- name: replicatedApp
12
+
desc: "Replicated App to use"
13
+
required: false
14
+
default: ""
15
+
- name: version
16
+
desc: "Version of gitpod to install(in the case of upgrade tests, this is the initial install version and will later get upgraded to latest"
17
+
required: false
18
+
default: ""
19
+
- name: skipTests
20
+
desc: "Set this to true to skip integration tests"
21
+
required: false
22
+
default: false
23
+
- name: upgrade
24
+
desc: "Set this to true to run KOTS upgrade from the specified version to the latest version"
25
+
required: false
26
+
default: false
27
+
- name: preview
28
+
desc: "Setting preview to true creates a self-hosted preview for you to consume"
29
+
required: false
30
+
default: true
31
+
- name: deps
32
+
desc: "Specify if the dependencies(storage, db, registry) should be external or incluster. If unset, a random combination will be chosen. options:[external, incluster]"
33
+
required: false
2
34
pod:
3
35
serviceAccount: werft
4
36
affinity:
@@ -60,6 +92,16 @@ pod:
60
92
secretKeyRef:
61
93
name: slack-webhook-urls
62
94
key: self_hosted_jobs
95
+
- name: REPLICATED_API_TOKEN
96
+
valueFrom:
97
+
secretKeyRef:
98
+
name: replicated
99
+
key: token
100
+
- name: REPLICATED_APP
101
+
valueFrom:
102
+
secretKeyRef:
103
+
name: replicated
104
+
key: app
63
105
command:
64
106
- bash
65
107
- -c
@@ -72,7 +114,13 @@ pod:
72
114
73
115
curl -sLS https://get.k3sup.dev | sh
74
116
75
-
export TF_VAR_TEST_ID=$(echo $RANDOM | md5sum | head -c 5; echo)-k3s
117
+
export domain="{{ .Annotations.subdomain }}"
118
+
119
+
if [[ "$domain" == "<no value>" ]]; then
120
+
export TF_VAR_TEST_ID="$(echo $RANDOM | md5sum | head -c 5; echo)-k3s"
0 commit comments