Skip to content

Commit aafcaf1

Browse files
nandajavarmaroboquat
authored andcommitted
[installer-tests] Fix the k3s installer tests YAML
1 parent 9e747b6 commit aafcaf1

File tree

1 file changed

+38
-40
lines changed

1 file changed

+38
-40
lines changed

.werft/k3s-installer-tests.yaml

Lines changed: 38 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -26,51 +26,49 @@ pod:
2626
imagePullPolicy: Always
2727
volumeMounts:
2828
- name: sh-playground-sa-perm
29-
secret:
30-
secretName: sh-playground-sa-perm
31-
- name: sh-playground-dns-perm
32-
secret:
33-
secretName: sh-playground-dns-perm
34-
env:
35-
- name: WERFT_HOST
36-
value: "werft.werft.svc.cluster.local:7777"
37-
- name: GOOGLE_APPLICATION_CREDENTIALS
38-
value: "/mnt/secrets/sh-playground-sa-perm/sh-sa.json"
39-
- name: TF_VAR_sa_creds
40-
value: "/mnt/secrets/sh-playground-sa-perm/sh-sa.json"
41-
- name: TF_VAR_dns_sa_creds
42-
value: "/mnt/secrets/sh-playground-dns-perm/sh-dns-sa.json"
43-
- name: WERFT_K8S_NAMESPACE
44-
value: "werft"
45-
- name: WERFT_K8S_LABEL
46-
value: "component=werft"
47-
- name: NODENAME
48-
valueFrom:
49-
fieldRef:
50-
fieldPath: spec.nodeName
51-
- name: USER_TOKEN # this is for the integration tests
52-
valueFrom:
53-
secretKeyRef:
54-
name: integration-test-user
55-
key: token
56-
command:
57-
- bash
58-
- -c
59-
- |
60-
sleep 1
61-
set -Eeuo pipefail
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: WERFT_HOST
34+
value: "werft.werft.svc.cluster.local:7777"
35+
- name: GOOGLE_APPLICATION_CREDENTIALS
36+
value: "/mnt/secrets/sh-playground-sa-perm/sh-sa.json"
37+
- name: TF_VAR_sa_creds
38+
value: "/mnt/secrets/sh-playground-sa-perm/sh-sa.json"
39+
- name: TF_VAR_dns_sa_creds
40+
value: "/mnt/secrets/sh-playground-dns-perm/sh-dns-sa.json"
41+
- name: WERFT_K8S_NAMESPACE
42+
value: "werft"
43+
- name: WERFT_K8S_LABEL
44+
value: "component=werft"
45+
- name: NODENAME
46+
valueFrom:
47+
fieldRef:
48+
fieldPath: spec.nodeName
49+
- name: USER_TOKEN # this is for the integration tests
50+
valueFrom:
51+
secretKeyRef:
52+
name: integration-test-user
53+
key: token
54+
command:
55+
- bash
56+
- -c
57+
- |
58+
sleep 1
59+
set -Eeuo pipefail
6260
63-
sudo chown -R gitpod:gitpod /workspace
64-
sudo apt update && apt install gettext-base
61+
sudo chown -R gitpod:gitpod /workspace
62+
sudo apt update && apt install gettext-base
6563
66-
curl -sLS https://get.k3sup.dev | sh
64+
curl -sLS https://get.k3sup.dev | sh
6765
68-
export TF_VAR_TEST_ID=$(echo $RANDOM | md5sum | head -c 5; echo)
66+
export TF_VAR_TEST_ID=$(echo $RANDOM | md5sum | head -c 5; echo)
6967
70-
(cd .werft && yarn install && mv node_modules ..) | werft log slice prep
71-
printf '{{ toJson . }}' > context.json
68+
(cd .werft && yarn install && mv node_modules ..) | werft log slice prep
69+
printf '{{ toJson . }}' > context.json
7270
73-
npx ts-node .werft/installer-tests.ts "STANDARD_K3S_TEST"
71+
npx ts-node .werft/installer-tests.ts "STANDARD_K3S_TEST"
7472
# The bit below makes this a cron job
7573
plugins:
7674
cron: "15 3 * * *"

0 commit comments

Comments
 (0)