|
26 | 26 | imagePullPolicy: Always
|
27 | 27 | volumeMounts:
|
28 | 28 | - 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 |
62 | 60 |
|
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 |
65 | 63 |
|
66 |
| - curl -sLS https://get.k3sup.dev | sh |
| 64 | + curl -sLS https://get.k3sup.dev | sh |
67 | 65 |
|
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) |
69 | 67 |
|
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 |
72 | 70 |
|
73 |
| - npx ts-node .werft/installer-tests.ts "STANDARD_K3S_TEST" |
| 71 | + npx ts-node .werft/installer-tests.ts "STANDARD_K3S_TEST" |
74 | 72 | # The bit below makes this a cron job
|
75 | 73 | plugins:
|
76 | 74 | cron: "15 3 * * *"
|
0 commit comments