-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathnvidia-spec.yml
91 lines (73 loc) · 1.85 KB
/
nvidia-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 NVidia
description: |
Verifies that CK with NVidia passes integration tests
mkdocs:
destination:
- "validations/ck/nvidia.md"
matrix:
snap_version:
- 1.19/edge
- 1.18/edge
- 1.17/edge
- 1.16/edge
series:
- focal
- bionic
channel:
- edge
arch:
- amd64
concurrent: no
plan:
env:
- JUJU_DEPLOY_BUNDLE=cs:~containers/charmed-kubernetes
- JUJU_DEPLOY_CHANNEL=$CHANNEL
- JUJU_CLOUD=aws/us-east-2
- JUJU_CONTROLLER=validate-ck-nvidia
- JUJU_MODEL=validate-nvidia
pre-execute: |
#!/bin/bash
. $WORKSPACE/cilib.sh
setup_env
juju bootstrap $JUJU_CLOUD $JUJU_CONTROLLER \
-d $JUJU_MODEL \
--bootstrap-series $SERIES \
--force \
--bootstrap-constraints arch=$ARCH \
--model-default test-mode=true \
--model-default resource-tags=owner=k8sci \
--model-default image-stream=daily
tee overlay.yaml <<EOF> /dev/null
series: $SERIES
applications:
kubernetes-master:
constraints: cores=2 mem=8G root-disk=16G
options:
channel: $SNAP_VERSION
kubernetes-worker:
constraints: instance-type=p2.xlarge
options:
channel: $SNAP_VERSION
EOF
juju deploy -m $JUJU_CONTROLLER:$JUJU_MODEL \
--overlay overlay.yaml \
--force \
--channel $JUJU_DEPLOY_CHANNEL $JUJU_DEPLOY_BUNDLE
timeout 45m juju-wait -e $JUJU_CONTROLLER:$JUJU_MODEL -w
execute: |
#!/bin/bash
set -eu
. $WORKSPACE/cilib.sh
inject_env
timeout 2h pytest \
$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
teardown_env