-
-
Notifications
You must be signed in to change notification settings - Fork 71
104 lines (100 loc) · 3.12 KB
/
e2e.yaml
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
92
93
94
95
96
97
98
99
100
101
102
103
104
name: e2e
on:
workflow_dispatch:
pull_request:
branches: [ main ]
push:
branches: [ main ]
permissions:
contents: read
jobs:
k8s-modules:
runs-on: ubuntu-latest
services:
registry:
image: registry:2
ports:
- 5000:5000
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Go
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version: 1.23.x
- name: Setup Kubernetes
uses: helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde # v1.10.0
with:
version: v0.22.0
node_image: kindest/node:v1.29.2
cluster_name: kind
- name: Install
run: make install
- name: Push module
run: |
timoni mod push ./examples/minimal oci://localhost:5000/minimal -v 1.0.0 --latest
- name: Install module
run: |
timoni -n test apply nginx oci://localhost:5000/minimal
- name: List modules
run: |
timoni list -A
- name: Upgrade module with custom values
run: |
echo 'values: message: "e2e"' | timoni -n test apply nginx oci://localhost:5000/minimal -v 1.0.0 -f-
- name: Upgrade module with debug values
run: |
timoni -n test apply nginx oci://localhost:5000/minimal -f ./examples/minimal/debug_values.cue
- name: Inspect module
run: |
timoni -n test inspect resources nginx
timoni -n test inspect module nginx
timoni -n test inspect values nginx
- name: Status module
run: |
timoni -n test status nginx
- name: Uninstall module
run: |
timoni -n test delete nginx --wait
k8s-bundles:
env:
NGINX_MODULE_URL: "oci://localhost:5000/nginx"
runs-on: ubuntu-latest
services:
registry:
image: registry:2
ports:
- 5000:5000
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Go
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version-file: 'go.mod'
cache: true
- name: Setup Kubernetes
uses: helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde # v1.10.0
with:
version: v0.22.0
cluster_name: kind
- name: Install
run: make install
- name: Push module
run: |
timoni mod push ./blueprints/starter ${NGINX_MODULE_URL} -v 1.0.0 --latest
- name: Vet bundle
run: |
timoni bundle vet -f hack/tests/nginx_bundle.cue --runtime-from-env
- name: Build bundle
run: |
timoni bundle build -f hack/tests/nginx_bundle.cue --runtime-from-env
- name: Apply bundle
run: |
timoni bundle apply -f hack/tests/nginx_bundle.cue --runtime-from-env
- name: Inspect bundle
run: |
timoni bundle status nginx
- name: Delete bundle
run: |
timoni bundle delete nginx