-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathtigera-ee-spec.yml
91 lines (71 loc) · 1.9 KB
/
tigera-ee-spec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
meta:
name: Verify CK with Tigera
description: |
Verifies that CK with Tigera passes integration tests
mkdocs:
destination:
- "validations/ck/tigera-ee.md"
matrix:
snap_version:
- 1.19/edge
- 1.18/edge
- 1.17/edge
- 1.16/edge
series:
- focal
- bionic
- xenial
channel:
- edge
arch:
- amd64
concurrent: no
plan:
env:
- JUJU_DEPLOY_BUNDLE=cs:~containers/kubernetes-tigera-secure-ee
- JUJU_DEPLOY_CHANNEL=edge
- JUJU_CLOUD=aws/us-east-2
- JUJU_CONTROLLER=validate-ck-tigera-ee
- JUJU_MODEL=validate-tigera-ee
pre-execute: |
#!/bin/bash
set -eux
. $WORKSPACE/cilib.sh
setup_env
python jobs/integration/tigera_aws.py cleanup
python jobs/integration/tigera_aws.py bootstrap
cat > overlay.yaml <<EOF
applications:
kubernetes-master:
options:
channel: $SNAP_VERSION
kubernetes-worker:
options:
channel: $SNAP_VERSION
EOF
juju deploy -m $JUJU_CONTROLLER:$JUJU_MODEL \
--overlay overlay.yaml \
--force \
--channel $JUJU_DEPLOY_CHANNEL $JUJU_DEPLOY_BUNDLE
juju config -m $JUJU_CONTROLLER:$JUJU_MODEL tigera-secure-ee \
license-key=$(base64 -w0 $TIGERA_SECURE_EE_LICENSE_KEY_FILE) \
registry-credentials=$(base64 -w0 $TIGERA_PRIVATE_REGISTRY_CREDENTIALS_FILE)
python jobs/integration/tigera_aws.py disable-source-dest-check
timeout 45m juju-wait -e $JUJU_CONTROLLER:$JUJU_MODEL -w
execute: |
#!/bin/bash
set -eu
. $WORKSPACE/cilib.sh
inject_env
timeout 2h pytest -m "not slow" \
$WORKSPACE/jobs/integration/validation.py \
--cloud $JUJU_CLOUD \
--model $JUJU_MODEL \
--controller $JUJU_CONTROLLER
post-execute: |
#!/bin/bash
. $WORKSPACE/cilib.sh
inject_env
collect_env
python jobs/integration/tigera_aws.py cleanup
teardown_env