provisioning/schemas/tests/fixtures/component_valid.ncl

19 lines
728 B
Text

# Fixture: minimal ComponentDef with all 6 concerns declared.
# Expected: passes; exports valid JSON.
let lib = import "schemas/lib/contracts.ncl" in
let c = import "schemas/lib/concerns.ncl" in
{
component | lib.ComponentDef = {
name = "valid-component",
mode = 'taskserv,
concerns = {
tls = c.disabled "stateless service, no TLS termination needed",
dns = c.disabled "no DNS records owned by this component",
certs = c.disabled "no ACME issuer config",
backup = c.pending "policy to be defined" "BACKUP-001",
observability = c.pending "metrics surface to be defined" "OBS-001",
security = c.pending "rbac/networkpolicy to be defined" "SEC-001",
},
},
}