mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-11 23:50:06 +01:00
add examples to docs site
This commit is contained in:
parent
53adf2b3b7
commit
a76ddefe1c
30 changed files with 328 additions and 119 deletions
|
|
@ -166,16 +166,14 @@
|
|||
if suite.success
|
||||
then pkgs.runCommandNoCC "testing-suite-config-assertions-for-${suite.name}-succeeded" {} "echo success > $out"
|
||||
else pkgs.runCommandNoCC "testing-suite-config-assertions-for-${suite.name}-failed" {} "exit 1";
|
||||
mkExamples = attrs:
|
||||
(import ./docs/examples {inherit evalModules;})
|
||||
({registry = "docker.io/gatehub";} // attrs);
|
||||
examples = import ./docs/content/examples;
|
||||
mkK8STests = attrs:
|
||||
(import ./tests {inherit evalModules;})
|
||||
({registry = "docker.io/gatehub";} // attrs);
|
||||
in
|
||||
{
|
||||
# TODO: access "success" derivation with nice testing utils for nice output
|
||||
nginx-example = wasSuccess (mkExamples {}).nginx-deployment.config.testing;
|
||||
testing = wasSuccess examples.testing.config.testing;
|
||||
}
|
||||
// builtins.listToAttrs (builtins.map
|
||||
(v: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue