1
1
mirror of https://github.com/tweag/nickel.git synced 2024-10-04 23:27:15 +03:00
nickel/examples/record-contract
2022-03-03 17:12:19 +01:00
..
README.md Put each example in its own directory with a README 2021-04-28 18:37:11 +02:00
record-contract.ncl fix butal replacement for http(s):// 2022-03-03 17:12:19 +01:00

Kubernetes-like record contract

This is an illustrative (thus incomplete and maybe incorrect) example of a Kubernetes configuration. It demonstrates how you can write contracts for simple elements (such as Port), and assemble them into a schema for your end configuration.

Run

$ nickel -f record-contract.ncl export

Playground

You can try to break any of the previous contracts to see what happens: provide a non supported flag, a pathLibC that doesn't end in ".so", and so on.