|
5 | 5 | nodeAffinity:
|
6 | 6 | requiredDuringSchedulingIgnoredDuringExecution:
|
7 | 7 | 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" |
13 | 13 | securityContext:
|
14 | 14 | runAsUser: 0
|
15 | 15 | 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: |
31 | 16 | - 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 |
33 | 22 | - 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 |
80 | 83 |
|
81 |
| - sudo chown -R gitpod:gitpod /workspace |
82 |
| - sudo apt update && apt install gettext-base |
| 84 | + curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash |
83 | 85 |
|
84 |
| - curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash |
| 86 | + export TF_VAR_TEST_ID=$(echo $RANDOM | md5sum | head -c 5; echo) |
85 | 87 |
|
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 |
87 | 90 |
|
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" |
90 | 92 |
|
91 |
| - npx ts-node .werft/installer-tests.ts "STANDARD_AKS_TEST" |
92 | 93 | # The bit below makes this a cron job
|
93 | 94 | # plugins:
|
94 | 95 | # cron: "15 3 * * *"
|
0 commit comments