-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample.k9.ncl
More file actions
41 lines (35 loc) · 1013 Bytes
/
sample.k9.ncl
File metadata and controls
41 lines (35 loc) · 1013 Bytes
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
# SPDX-License-Identifier: MIT
# hello.k9.ncl - Example K9 Self-Validating Component
#
# This is a minimal .k9 component demonstrating the pedigree structure.
# It validates itself against the pedigree schema.
let pedigree = import "../pedigree.ncl" in
pedigree.K9Pedigree & {
metadata = {
name = "hello-k9",
version = "1.0.0-alpha",
description = "A minimal K9 component that says hello",
},
target = {
os = 'Linux,
is_edge = false,
requires_podman = false,
},
security = {
trust_level = 'Yard,
allow_network = false,
allow_filesystem_write = false,
allow_subprocess = false,
},
validation = {
checksum = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
pedigree_version = "1.0.0",
hunt_authorized = false,
},
recipes = {
install = "echo 'Hello from K9!'",
validate = "nickel typecheck examples/hello.k9.ncl",
deploy = "echo 'K9 deployed successfully'",
migrate = "echo 'No migration needed'",
},
}