Skip to content

Commit df632a6

Browse files
committed
add sample chainsaw test for gpu-operator install
Signed-off-by: Rahul Sharma <[email protected]>
1 parent c5d513d commit df632a6

File tree

8 files changed

+561
-0
lines changed

8 files changed

+561
-0
lines changed

.chainsaw.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
apiVersion: chainsaw.kyverno.io/v1alpha2
2+
kind: Configuration
3+
metadata:
4+
name: configuration
5+
spec:
6+
timeouts:
7+
apply: 1m0s
8+
assert: 5m0s
9+
cleanup: 5m0s
10+
delete: 5m0s
11+
error: 5m0s
12+
exec: 1m0s
13+
cleanup:
14+
skipDelete: false
15+
execution:
16+
failFast: true
17+
parallel: 1

devbox.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"packages": {
3+
"kubectl": "1.33.4",
4+
"kustomize": "5.7.1",
5+
"go": "1.25",
6+
"golangci-lint": "latest",
7+
"kubernetes-helm": "3.19.0",
8+
"kyverno-chainsaw": "0.2.13",
9+
"apple-sdk_15": {
10+
"name": "apple-sdk_15",
11+
"version": "latest",
12+
"platforms": [
13+
"aarch64-darwin",
14+
"x86_64-darwin"
15+
],
16+
"excluded_platforms": ["x86_64-linux"]
17+
}
18+
},
19+
"shell": {
20+
"init_hook": [
21+
"export \"GOROOT=$(go env GOROOT)\""
22+
]
23+
}
24+
}

devbox.lock

Lines changed: 333 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,333 @@
1+
{
2+
"lockfile_version": "1",
3+
"packages": {
4+
"github:NixOS/nixpkgs/nixpkgs-unstable": {
5+
"last_modified": "2025-10-20T13:06:07Z",
6+
"resolved": "github:NixOS/nixpkgs/cb82756ecc37fa623f8cf3e88854f9bf7f64af93?lastModified=1760965567&narHash=sha256-0JDOal5P7xzzAibvD0yTE3ptyvoVOAL0rcELmDdtSKg%3D"
7+
},
8+
9+
"last_modified": "2025-10-07T08:41:47Z",
10+
"resolved": "github:NixOS/nixpkgs/bce5fe2bb998488d8e7e7856315f90496723793c#go",
11+
"source": "devbox-search",
12+
"version": "1.25.1",
13+
"systems": {
14+
"aarch64-darwin": {
15+
"outputs": [
16+
{
17+
"name": "out",
18+
"path": "/nix/store/mkdfnr1nkfj2kznxyag9pypbxp3wqqdv-go-1.25.1",
19+
"default": true
20+
}
21+
],
22+
"store_path": "/nix/store/mkdfnr1nkfj2kznxyag9pypbxp3wqqdv-go-1.25.1"
23+
},
24+
"aarch64-linux": {
25+
"outputs": [
26+
{
27+
"name": "out",
28+
"path": "/nix/store/0jzj8p7k9wkr4l17sgrlg3z5di27sggf-go-1.25.1",
29+
"default": true
30+
}
31+
],
32+
"store_path": "/nix/store/0jzj8p7k9wkr4l17sgrlg3z5di27sggf-go-1.25.1"
33+
},
34+
"x86_64-darwin": {
35+
"outputs": [
36+
{
37+
"name": "out",
38+
"path": "/nix/store/q2xylk8h3kbfajhw2lpdmyzyyqgqx8fl-go-1.25.1",
39+
"default": true
40+
}
41+
],
42+
"store_path": "/nix/store/q2xylk8h3kbfajhw2lpdmyzyyqgqx8fl-go-1.25.1"
43+
},
44+
"x86_64-linux": {
45+
"outputs": [
46+
{
47+
"name": "out",
48+
"path": "/nix/store/f01qkydd3c2jqwi4w6hkddkf3blp16kw-go-1.25.1",
49+
"default": true
50+
}
51+
],
52+
"store_path": "/nix/store/f01qkydd3c2jqwi4w6hkddkf3blp16kw-go-1.25.1"
53+
}
54+
}
55+
},
56+
"golangci-lint@latest": {
57+
"last_modified": "2025-10-07T08:41:47Z",
58+
"resolved": "github:NixOS/nixpkgs/bce5fe2bb998488d8e7e7856315f90496723793c#golangci-lint",
59+
"source": "devbox-search",
60+
"version": "2.5.0",
61+
"systems": {
62+
"aarch64-darwin": {
63+
"outputs": [
64+
{
65+
"name": "out",
66+
"path": "/nix/store/15bzlcc1h11sv9vwawrnfcw0avn3nhlw-golangci-lint-2.5.0",
67+
"default": true
68+
}
69+
],
70+
"store_path": "/nix/store/15bzlcc1h11sv9vwawrnfcw0avn3nhlw-golangci-lint-2.5.0"
71+
},
72+
"aarch64-linux": {
73+
"outputs": [
74+
{
75+
"name": "out",
76+
"path": "/nix/store/60qpwfy5bac8lflw12kffxdhvvylsr4k-golangci-lint-2.5.0",
77+
"default": true
78+
}
79+
],
80+
"store_path": "/nix/store/60qpwfy5bac8lflw12kffxdhvvylsr4k-golangci-lint-2.5.0"
81+
},
82+
"x86_64-darwin": {
83+
"outputs": [
84+
{
85+
"name": "out",
86+
"path": "/nix/store/laxn1i91p32i319i5ixslxz4bl451hvq-golangci-lint-2.5.0",
87+
"default": true
88+
}
89+
],
90+
"store_path": "/nix/store/laxn1i91p32i319i5ixslxz4bl451hvq-golangci-lint-2.5.0"
91+
},
92+
"x86_64-linux": {
93+
"outputs": [
94+
{
95+
"name": "out",
96+
"path": "/nix/store/s95zr6py9ppj3hpm295mdzs40q59177p-golangci-lint-2.5.0",
97+
"default": true
98+
}
99+
],
100+
"store_path": "/nix/store/s95zr6py9ppj3hpm295mdzs40q59177p-golangci-lint-2.5.0"
101+
}
102+
}
103+
},
104+
105+
"last_modified": "2025-09-18T16:33:27Z",
106+
"resolved": "github:NixOS/nixpkgs/f4b140d5b253f5e2a1ff4e5506edbf8267724bde#kubectl",
107+
"source": "devbox-search",
108+
"version": "1.33.4",
109+
"systems": {
110+
"aarch64-darwin": {
111+
"outputs": [
112+
{
113+
"name": "out",
114+
"path": "/nix/store/l9qa55xhnsif5bd8jc558pl2kraiwisx-kubectl-1.33.4",
115+
"default": true
116+
},
117+
{
118+
"name": "man",
119+
"path": "/nix/store/1ax04d2wdfp63df3gbjdsq523ql895yc-kubectl-1.33.4-man",
120+
"default": true
121+
},
122+
{
123+
"name": "convert",
124+
"path": "/nix/store/p7xb87g2vz00n97fhaaqwr9jdvcp5647-kubectl-1.33.4-convert"
125+
}
126+
],
127+
"store_path": "/nix/store/l9qa55xhnsif5bd8jc558pl2kraiwisx-kubectl-1.33.4"
128+
},
129+
"aarch64-linux": {
130+
"outputs": [
131+
{
132+
"name": "out",
133+
"path": "/nix/store/a95sq4yvhbrh4njn49glnp2xmbd3k3q1-kubectl-1.33.4",
134+
"default": true
135+
},
136+
{
137+
"name": "man",
138+
"path": "/nix/store/5jnghhpmiympxr759s1pqbksg3gld6d8-kubectl-1.33.4-man",
139+
"default": true
140+
},
141+
{
142+
"name": "convert",
143+
"path": "/nix/store/5sxzhci6fxn8jv3x9xkab1jdb43ynpzr-kubectl-1.33.4-convert"
144+
}
145+
],
146+
"store_path": "/nix/store/a95sq4yvhbrh4njn49glnp2xmbd3k3q1-kubectl-1.33.4"
147+
},
148+
"x86_64-darwin": {
149+
"outputs": [
150+
{
151+
"name": "out",
152+
"path": "/nix/store/417lxr3l5cy3m86iywhhrkbkx2j9y1xk-kubectl-1.33.4",
153+
"default": true
154+
},
155+
{
156+
"name": "man",
157+
"path": "/nix/store/q5gf3an5cmfzyl2wqw21ll01yfmjxm0j-kubectl-1.33.4-man",
158+
"default": true
159+
},
160+
{
161+
"name": "convert",
162+
"path": "/nix/store/2kfp817d37kbsrjh48f8l26hmf12b97z-kubectl-1.33.4-convert"
163+
}
164+
],
165+
"store_path": "/nix/store/417lxr3l5cy3m86iywhhrkbkx2j9y1xk-kubectl-1.33.4"
166+
},
167+
"x86_64-linux": {
168+
"outputs": [
169+
{
170+
"name": "out",
171+
"path": "/nix/store/abp5rhv8vnij5k08m5id75vdq4nnkqqq-kubectl-1.33.4",
172+
"default": true
173+
},
174+
{
175+
"name": "man",
176+
"path": "/nix/store/75afy3w5985pck1f7bvwwq7gzawf9i9c-kubectl-1.33.4-man",
177+
"default": true
178+
},
179+
{
180+
"name": "convert",
181+
"path": "/nix/store/1yhls3wrancjn52md7552kyalbh7dd5b-kubectl-1.33.4-convert"
182+
}
183+
],
184+
"store_path": "/nix/store/abp5rhv8vnij5k08m5id75vdq4nnkqqq-kubectl-1.33.4"
185+
}
186+
}
187+
},
188+
189+
"last_modified": "2025-10-07T08:41:47Z",
190+
"resolved": "github:NixOS/nixpkgs/bce5fe2bb998488d8e7e7856315f90496723793c#kubernetes-helm",
191+
"source": "devbox-search",
192+
"version": "3.19.0",
193+
"systems": {
194+
"aarch64-darwin": {
195+
"outputs": [
196+
{
197+
"name": "out",
198+
"path": "/nix/store/n0n03a8q03sank4abr83v1wp0q7kvl0d-kubernetes-helm-3.19.0",
199+
"default": true
200+
}
201+
],
202+
"store_path": "/nix/store/n0n03a8q03sank4abr83v1wp0q7kvl0d-kubernetes-helm-3.19.0"
203+
},
204+
"aarch64-linux": {
205+
"outputs": [
206+
{
207+
"name": "out",
208+
"path": "/nix/store/686i1gk7yqmspasg5vrnw551filf5195-kubernetes-helm-3.19.0",
209+
"default": true
210+
}
211+
],
212+
"store_path": "/nix/store/686i1gk7yqmspasg5vrnw551filf5195-kubernetes-helm-3.19.0"
213+
},
214+
"x86_64-darwin": {
215+
"outputs": [
216+
{
217+
"name": "out",
218+
"path": "/nix/store/yb5qmlr4spkjhhw6xanyflaza8hlnm90-kubernetes-helm-3.19.0",
219+
"default": true
220+
}
221+
],
222+
"store_path": "/nix/store/yb5qmlr4spkjhhw6xanyflaza8hlnm90-kubernetes-helm-3.19.0"
223+
},
224+
"x86_64-linux": {
225+
"outputs": [
226+
{
227+
"name": "out",
228+
"path": "/nix/store/rz50caa3rvsrr4hianhhq10af0g4hjp6-kubernetes-helm-3.19.0",
229+
"default": true
230+
}
231+
],
232+
"store_path": "/nix/store/rz50caa3rvsrr4hianhhq10af0g4hjp6-kubernetes-helm-3.19.0"
233+
}
234+
}
235+
},
236+
237+
"last_modified": "2025-10-07T08:41:47Z",
238+
"resolved": "github:NixOS/nixpkgs/bce5fe2bb998488d8e7e7856315f90496723793c#kustomize",
239+
"source": "devbox-search",
240+
"version": "5.7.1",
241+
"systems": {
242+
"aarch64-darwin": {
243+
"outputs": [
244+
{
245+
"name": "out",
246+
"path": "/nix/store/n2laq06rwha0rw27jjmxhmwj04lv6409-kustomize-5.7.1",
247+
"default": true
248+
}
249+
],
250+
"store_path": "/nix/store/n2laq06rwha0rw27jjmxhmwj04lv6409-kustomize-5.7.1"
251+
},
252+
"aarch64-linux": {
253+
"outputs": [
254+
{
255+
"name": "out",
256+
"path": "/nix/store/1bi3ifnqrpd3xz4m8bp2xp1831cgfks9-kustomize-5.7.1",
257+
"default": true
258+
}
259+
],
260+
"store_path": "/nix/store/1bi3ifnqrpd3xz4m8bp2xp1831cgfks9-kustomize-5.7.1"
261+
},
262+
"x86_64-darwin": {
263+
"outputs": [
264+
{
265+
"name": "out",
266+
"path": "/nix/store/qg25vz4vbgv5zd4d3jc5zlyh4cnpvc7n-kustomize-5.7.1",
267+
"default": true
268+
}
269+
],
270+
"store_path": "/nix/store/qg25vz4vbgv5zd4d3jc5zlyh4cnpvc7n-kustomize-5.7.1"
271+
},
272+
"x86_64-linux": {
273+
"outputs": [
274+
{
275+
"name": "out",
276+
"path": "/nix/store/xsgmcbab2dsp6lqs9maw79d9cs0wc4nz-kustomize-5.7.1",
277+
"default": true
278+
}
279+
],
280+
"store_path": "/nix/store/xsgmcbab2dsp6lqs9maw79d9cs0wc4nz-kustomize-5.7.1"
281+
}
282+
}
283+
},
284+
285+
"last_modified": "2025-10-07T08:41:47Z",
286+
"resolved": "github:NixOS/nixpkgs/bce5fe2bb998488d8e7e7856315f90496723793c#kyverno-chainsaw",
287+
"source": "devbox-search",
288+
"version": "0.2.13",
289+
"systems": {
290+
"aarch64-darwin": {
291+
"outputs": [
292+
{
293+
"name": "out",
294+
"path": "/nix/store/8f3lh76sgdxaijwpij6csm5p5n15jwp4-kyverno-chainsaw-0.2.13",
295+
"default": true
296+
}
297+
],
298+
"store_path": "/nix/store/8f3lh76sgdxaijwpij6csm5p5n15jwp4-kyverno-chainsaw-0.2.13"
299+
},
300+
"aarch64-linux": {
301+
"outputs": [
302+
{
303+
"name": "out",
304+
"path": "/nix/store/pmipjv8ag7za6990n3zg5d0phv6vjq21-kyverno-chainsaw-0.2.13",
305+
"default": true
306+
}
307+
],
308+
"store_path": "/nix/store/pmipjv8ag7za6990n3zg5d0phv6vjq21-kyverno-chainsaw-0.2.13"
309+
},
310+
"x86_64-darwin": {
311+
"outputs": [
312+
{
313+
"name": "out",
314+
"path": "/nix/store/g26fh3ablgqmpr0pvqr32n9dhmdbh9qc-kyverno-chainsaw-0.2.13",
315+
"default": true
316+
}
317+
],
318+
"store_path": "/nix/store/g26fh3ablgqmpr0pvqr32n9dhmdbh9qc-kyverno-chainsaw-0.2.13"
319+
},
320+
"x86_64-linux": {
321+
"outputs": [
322+
{
323+
"name": "out",
324+
"path": "/nix/store/6q72s82a56bxlkq2dwddpmamr31jb0lq-kyverno-chainsaw-0.2.13",
325+
"default": true
326+
}
327+
],
328+
"store_path": "/nix/store/6q72s82a56bxlkq2dwddpmamr31jb0lq-kyverno-chainsaw-0.2.13"
329+
}
330+
}
331+
}
332+
}
333+
}

0 commit comments

Comments
 (0)