Skip to content

Commit 4cb2627

Browse files
meysholdtroboquat
authored andcommitted
Format all YAML files in .werft folder via prettier
1 parent 9c85e91 commit 4cb2627

28 files changed

+1326
-1338
lines changed

.werft/aks-installer-tests.yaml

Lines changed: 75 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -5,90 +5,91 @@ pod:
55
nodeAffinity:
66
requiredDuringSchedulingIgnoredDuringExecution:
77
nodeSelectorTerms:
8-
- matchExpressions:
9-
- key: dev/workload
10-
operator: In
11-
values:
12-
- "builds"
8+
- matchExpressions:
9+
- key: dev/workload
10+
operator: In
11+
values:
12+
- "builds"
1313
securityContext:
1414
runAsUser: 0
1515
volumes:
16-
- name: sh-playground-sa-perm
17-
secret:
18-
secretName: sh-playground-sa-perm
19-
- name: sh-playground-dns-perm
20-
secret:
21-
secretName: sh-playground-dns-perm
22-
- name: sh-aks-perm
23-
secret:
24-
secretName: aks-credentials
25-
containers:
26-
- name: nightly-test
27-
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:cw-werft-cred.0
28-
workingDir: /workspace
29-
imagePullPolicy: Always
30-
volumeMounts:
3116
- name: sh-playground-sa-perm
32-
mountPath: /mnt/secrets/sh-playground-sa-perm
17+
secret:
18+
secretName: sh-playground-sa-perm
19+
- name: sh-playground-dns-perm
20+
secret:
21+
secretName: sh-playground-dns-perm
3322
- name: sh-aks-perm
34-
mountPath: /mnt/secrets/sh-aks-perm
35-
- name: sh-playground-dns-perm # this sa is used for the DNS management
36-
mountPath: /mnt/secrets/sh-playground-dns-perm
37-
env:
38-
- name: ARM_SUBSCRIPTION_ID
39-
valueFrom:
40-
secretKeyRef:
41-
name: aks-credentials
42-
key: subscriptionid
43-
- name: ARM_TENANT_ID
44-
valueFrom:
45-
secretKeyRef:
46-
name: aks-credentials
47-
key: tenantid
48-
- name: ARM_CLIENT_ID
49-
valueFrom:
50-
secretKeyRef:
51-
name: aks-credentials
52-
key: clientid
53-
- name: ARM_CLIENT_SECRET
54-
valueFrom:
55-
secretKeyRef:
56-
name: aks-credentials
57-
key: clientsecret
58-
- name: WERFT_HOST
59-
value: "werft.werft.svc.cluster.local:7777"
60-
- name: GOOGLE_APPLICATION_CREDENTIALS
61-
value: "/mnt/secrets/sh-playground-sa-perm/sh-sa.json"
62-
- name: WERFT_K8S_NAMESPACE
63-
value: "werft"
64-
- name: WERFT_K8S_LABEL
65-
value: "component=werft"
66-
- name: TF_VAR_sa_creds
67-
value: "/mnt/secrets/sh-playground-sa-perm/sh-sa.json"
68-
- name: TF_VAR_dns_sa_creds
69-
value: "/mnt/secrets/sh-playground-dns-perm/sh-dns-sa.json"
70-
- name: NODENAME
71-
valueFrom:
72-
fieldRef:
73-
fieldPath: spec.nodeName
74-
command:
75-
- bash
76-
- -c
77-
- |
78-
sleep 1
79-
set -Eeuo pipefail
23+
secret:
24+
secretName: aks-credentials
25+
containers:
26+
- name: nightly-test
27+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:cw-werft-cred.0
28+
workingDir: /workspace
29+
imagePullPolicy: Always
30+
volumeMounts:
31+
- name: sh-playground-sa-perm
32+
mountPath: /mnt/secrets/sh-playground-sa-perm
33+
- name: sh-aks-perm
34+
mountPath: /mnt/secrets/sh-aks-perm
35+
- name: sh-playground-dns-perm # this sa is used for the DNS management
36+
mountPath: /mnt/secrets/sh-playground-dns-perm
37+
env:
38+
- name: ARM_SUBSCRIPTION_ID
39+
valueFrom:
40+
secretKeyRef:
41+
name: aks-credentials
42+
key: subscriptionid
43+
- name: ARM_TENANT_ID
44+
valueFrom:
45+
secretKeyRef:
46+
name: aks-credentials
47+
key: tenantid
48+
- name: ARM_CLIENT_ID
49+
valueFrom:
50+
secretKeyRef:
51+
name: aks-credentials
52+
key: clientid
53+
- name: ARM_CLIENT_SECRET
54+
valueFrom:
55+
secretKeyRef:
56+
name: aks-credentials
57+
key: clientsecret
58+
- name: WERFT_HOST
59+
value: "werft.werft.svc.cluster.local:7777"
60+
- name: GOOGLE_APPLICATION_CREDENTIALS
61+
value: "/mnt/secrets/sh-playground-sa-perm/sh-sa.json"
62+
- name: WERFT_K8S_NAMESPACE
63+
value: "werft"
64+
- name: WERFT_K8S_LABEL
65+
value: "component=werft"
66+
- name: TF_VAR_sa_creds
67+
value: "/mnt/secrets/sh-playground-sa-perm/sh-sa.json"
68+
- name: TF_VAR_dns_sa_creds
69+
value: "/mnt/secrets/sh-playground-dns-perm/sh-dns-sa.json"
70+
- name: NODENAME
71+
valueFrom:
72+
fieldRef:
73+
fieldPath: spec.nodeName
74+
command:
75+
- bash
76+
- -c
77+
- |
78+
sleep 1
79+
set -Eeuo pipefail
80+
81+
sudo chown -R gitpod:gitpod /workspace
82+
sudo apt update && apt install gettext-base
8083
81-
sudo chown -R gitpod:gitpod /workspace
82-
sudo apt update && apt install gettext-base
84+
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
8385
84-
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
86+
export TF_VAR_TEST_ID=$(echo $RANDOM | md5sum | head -c 5; echo)
8587
86-
export TF_VAR_TEST_ID=$(echo $RANDOM | md5sum | head -c 5; echo)
88+
(cd .werft && yarn install && mv node_modules ..) | werft log slice prep
89+
printf '{{ toJson . }}' > context.json
8790
88-
(cd .werft && yarn install && mv node_modules ..) | werft log slice prep
89-
printf '{{ toJson . }}' > context.json
91+
npx ts-node .werft/installer-tests.ts "STANDARD_AKS_TEST"
9092
91-
npx ts-node .werft/installer-tests.ts "STANDARD_AKS_TEST"
9293
# The bit below makes this a cron job
9394
# plugins:
9495
# cron: "15 3 * * *"

.werft/config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
rules:
2-
- path: ".werft/build.yaml"
3-
matchesAll:
4-
- or: ["repo.ref ~= refs/heads/"]
5-
- or: ["trigger !== deleted"]
2+
- path: ".werft/build.yaml"
3+
matchesAll:
4+
- or: ["repo.ref ~= refs/heads/"]
5+
- or: ["trigger !== deleted"]

.werft/eks-installer-tests.yaml

Lines changed: 68 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -5,81 +5,82 @@ pod:
55
nodeAffinity:
66
requiredDuringSchedulingIgnoredDuringExecution:
77
nodeSelectorTerms:
8-
- matchExpressions:
9-
- key: dev/workload
10-
operator: In
11-
values:
12-
- "builds"
8+
- matchExpressions:
9+
- key: dev/workload
10+
operator: In
11+
values:
12+
- "builds"
1313
securityContext:
1414
runAsUser: 0
1515
volumes:
16-
- name: sh-playground-sa-perm
17-
secret:
18-
secretName: sh-playground-sa-perm
19-
- name: sh-playground-dns-perm
20-
secret:
21-
secretName: sh-playground-dns-perm
22-
containers:
23-
- name: nightly-test
24-
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:cw-werft-cred.0
25-
workingDir: /workspace
26-
imagePullPolicy: Always
27-
volumeMounts:
2816
- name: sh-playground-sa-perm
29-
mountPath: /mnt/secrets/sh-playground-sa-perm
30-
- name: sh-playground-dns-perm # this sa is used for the DNS management
31-
mountPath: /mnt/secrets/sh-playground-dns-perm
32-
env:
33-
- name: AWS_ACCESS_KEY_ID
34-
valueFrom:
35-
secretKeyRef:
36-
name: aws-credentials
37-
key: aws-access-key
38-
- name: AWS_SECRET_ACCESS_KEY
39-
valueFrom:
40-
secretKeyRef:
41-
name: aws-credentials
42-
key: aws-secret-key
43-
- name: AWS_REGION
44-
valueFrom:
45-
secretKeyRef:
46-
name: aws-credentials
47-
key: aws-region
48-
- name: WERFT_HOST
49-
value: "werft.werft.svc.cluster.local:7777"
50-
- name: GOOGLE_APPLICATION_CREDENTIALS
51-
value: "/mnt/secrets/sh-playground-sa-perm/sh-sa.json"
52-
- name: WERFT_K8S_NAMESPACE
53-
value: "werft"
54-
- name: WERFT_K8S_LABEL
55-
value: "component=werft"
56-
- name: TF_VAR_sa_creds
57-
value: "/mnt/secrets/sh-playground-sa-perm/sh-sa.json"
58-
- name: TF_VAR_dns_sa_creds
59-
value: "/mnt/secrets/sh-playground-dns-perm/sh-dns-sa.json"
60-
- name: NODENAME
61-
valueFrom:
62-
fieldRef:
63-
fieldPath: spec.nodeName
64-
command:
65-
- bash
66-
- -c
67-
- |
68-
sleep 1
69-
set -Eeuo pipefail
17+
secret:
18+
secretName: sh-playground-sa-perm
19+
- name: sh-playground-dns-perm
20+
secret:
21+
secretName: sh-playground-dns-perm
22+
containers:
23+
- name: nightly-test
24+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:cw-werft-cred.0
25+
workingDir: /workspace
26+
imagePullPolicy: Always
27+
volumeMounts:
28+
- name: sh-playground-sa-perm
29+
mountPath: /mnt/secrets/sh-playground-sa-perm
30+
- name: sh-playground-dns-perm # this sa is used for the DNS management
31+
mountPath: /mnt/secrets/sh-playground-dns-perm
32+
env:
33+
- name: AWS_ACCESS_KEY_ID
34+
valueFrom:
35+
secretKeyRef:
36+
name: aws-credentials
37+
key: aws-access-key
38+
- name: AWS_SECRET_ACCESS_KEY
39+
valueFrom:
40+
secretKeyRef:
41+
name: aws-credentials
42+
key: aws-secret-key
43+
- name: AWS_REGION
44+
valueFrom:
45+
secretKeyRef:
46+
name: aws-credentials
47+
key: aws-region
48+
- name: WERFT_HOST
49+
value: "werft.werft.svc.cluster.local:7777"
50+
- name: GOOGLE_APPLICATION_CREDENTIALS
51+
value: "/mnt/secrets/sh-playground-sa-perm/sh-sa.json"
52+
- name: WERFT_K8S_NAMESPACE
53+
value: "werft"
54+
- name: WERFT_K8S_LABEL
55+
value: "component=werft"
56+
- name: TF_VAR_sa_creds
57+
value: "/mnt/secrets/sh-playground-sa-perm/sh-sa.json"
58+
- name: TF_VAR_dns_sa_creds
59+
value: "/mnt/secrets/sh-playground-dns-perm/sh-dns-sa.json"
60+
- name: NODENAME
61+
valueFrom:
62+
fieldRef:
63+
fieldPath: spec.nodeName
64+
command:
65+
- bash
66+
- -c
67+
- |
68+
sleep 1
69+
set -Eeuo pipefail
70+
71+
sudo chown -R gitpod:gitpod /workspace
72+
sudo apt update && apt install gettext-base
7073
71-
sudo chown -R gitpod:gitpod /workspace
72-
sudo apt update && apt install gettext-base
74+
export TF_VAR_TEST_ID="$(echo $RANDOM | md5sum | head -c 5; echo)"
7375
74-
export TF_VAR_TEST_ID="$(echo $RANDOM | md5sum | head -c 5; echo)"
76+
(cd .werft && yarn install && mv node_modules ..) | werft log slice prep
77+
printf '{{ toJson . }}' > context.json
78+
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
79+
unzip awscliv2.zip
80+
sudo ./aws/install
7581
76-
(cd .werft && yarn install && mv node_modules ..) | werft log slice prep
77-
printf '{{ toJson . }}' > context.json
78-
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
79-
unzip awscliv2.zip
80-
sudo ./aws/install
82+
npx ts-node .werft/installer-tests.ts "STANDARD_EKS_TEST"
8183
82-
npx ts-node .werft/installer-tests.ts "STANDARD_EKS_TEST"
8384
# The bit below makes this a cron job
8485
# plugins:
8586
# cron: "15 3 * * *"

0 commit comments

Comments
 (0)