Commit graph

330 commits

Author SHA1 Message Date
David Arnold
806a3d759e
ref: throwError -> doThrowError
Follow somewhat the nixpkgs conventions for bool flags
2021-06-01 10:00:15 -05:00
David Arnold
b29d3a11b2
testing: rename defaults to common options
They are technically no defaults and competing declarations cause a
module error
2021-05-31 22:36:11 -05:00
David Arnold
557cc48a0a
style: simplify example & tests top level invokation 2021-05-31 22:35:41 -05:00
David Arnold
0c99276b50
fix: test kubernetes manifest
nix-repl> test-nginx = g.config.testing.testsByName.nginx-deployment.evaled.config.kubernetes.resources.deployments.nginx
nix-repl> test-nginx.spec.template.spec.containers.nginx.image
"nginx:dy4y4j45arjj9sgyjb90sv035sxglpv8"

vs

nix-repl> nginx = g.config.kubernetes.resources.deployments.nginx
nix-repl> nginx.spec.template.spec.containers.nginx.image
"docker.io/gatehub/nginx:dy4y4j45arjj9sgyjb90sv035sxglpv8"
2021-05-31 21:46:13 -05:00
David Arnold
80d3a595f5
imp: add some provenance info on defaults 2021-05-31 21:21:48 -05:00
David Arnold
39badb2084
fixup tests 2021-05-31 21:14:39 -05:00
David Arnold
bf231d19fa
ref: move generators into jobs & improvements
- format generated files with nixpkgs-fmt

Also unrelatedly embellish flake.nix
2021-05-31 17:25:07 -05:00
David Arnold
348d922b18
style: fmt 2021-05-31 17:25:07 -05:00
David Arnold
e575c23570
rm: fix nixosPath
nixosPath would get reified in the nix store as /nix/store/<hash>-nixos
which breakes any referenced from within ./nixpkgs/nixos to ../lib or
../pkgs
2021-05-31 17:25:06 -05:00
David Arnold
8f9729870f
rm: defunct kubconfig template 2021-05-31 17:25:06 -05:00
David Arnold
09e268920b
ref: move source code to ./src (clean top level) 2021-05-31 17:25:06 -05:00
David Arnold
6ae1e2eb15
rm: drop legacy "ci" implementation 2021-05-31 17:25:05 -05:00
David Arnold
ee9b4adfc8
ref: non-flake compatibility
since this is purely a legacy concern (both default.nix and shell.nix),
we avoid to include the flake-compat as a flake input.

(even though unused inputs are lazily fetched - for style & clarity)
2021-05-31 17:25:05 -05:00
David Arnold
ded0db9e3f
ref: rename default.nix -> kubenix.nix it's one (1) package of this repo 2021-05-31 17:25:04 -05:00
David Arnold
59da5c1698
ref: don't expose upstreamable lib a second time as kubenix.lib
It is already overlayd onto pkgs.lib in the context of kubenix'
evalModules
2021-05-31 17:25:04 -05:00
David Arnold
9d006f39fc
ref: streamline extra lib 2021-05-31 17:24:59 -05:00
David Arnold
69e57de48b
fix: add kubernetes & kubectl pkg to pakgs output 2021-05-28 16:20:19 -05:00
David Arnold
fc47e41697
ref: streamline kubenix pkg 2021-05-28 16:20:18 -05:00
David Arnold
caafa96bd3
rm: legacy support for buildResources 2021-05-28 16:19:10 -05:00
David Arnold
bf64929797
ref: organize lib folder 2021-05-28 16:19:03 -05:00
David Arnold
7b057d8c0f
adapt remaining tests to kubetest 2021-05-13 22:58:11 -04:00
David Arnold
8a20c93b21
add nixos-k8s runtime & rmove k3s runtime 2021-05-13 20:42:56 -04:00
David Arnold
70d249aaff
move past legacy compat 2021-05-13 19:45:26 -04:00
David Arnold
d1ad09a897
enhance github workflow 2021-05-13 17:34:13 -04:00
David Arnold
db6d83c61e
fmt 2021-05-13 17:33:58 -04:00
GTrunSec
c3fa598922 enhance nix-shell and add CI 2021-05-13 17:08:41 -04:00
David Arnold
ffaa63af55
ref: reuse upstream k8s testing infra as much as possible 2021-05-12 22:35:22 -04:00
David Arnold
0abb1adb9b
wip: strip down local runtime options 2021-05-12 18:16:35 -04:00
David Arnold
4707557ba3
fix: config tests without script
some tests only assert correct configuration generation, let's call
them "config tests" as opposed to "runtime tests"/"e2e tests".

Those configuration tests, don't expose a runtime script. So they
should not be taken into account for any orchestrated runtime script.
2021-05-10 14:59:04 -04:00
Thomas Bereknyei
a3464f6857 add kubetest derivation from pypi 2021-05-08 13:05:06 -04:00
David Arnold
1bd3fe4d4e
fixups 2021-05-06 16:07:24 -04:00
Jaka Hudoklin
bbc5e3d477
WIP: test refactoring 2021-05-05 22:49:54 -04:00
David Arnold
8ad3b90a52
deactivate legacy + flaky tests 2021-05-05 22:33:09 -04:00
David Arnold
9759a318f5
expose cluster & fix flaky test image 2021-05-05 22:33:08 -04:00
David Arnold
2026496ea0
inaugurate decent devshell 2021-04-29 17:13:33 -05:00
David Arnold
be58b0e94e
fix helm test 2021-04-29 16:25:04 -05:00
David Arnold
1cc28e4602
bump: k8s version 2021-04-29 16:23:20 -05:00
David Arnold
599ce2def0
fix default compat 2021-04-28 19:25:10 -05:00
David Arnold
52c6472e90
fix tests 2021-04-28 19:25:09 -05:00
Xavier Zwirtz
cdddbc3f7d
Added k3s test 2021-04-28 14:28:44 -05:00
Xavier Zwirtz
0f8a36710c
wip k3s support 2021-04-28 14:28:44 -05:00
David Arnold
7a93fdce23
fix test executability 2021-04-28 13:43:24 -05:00
GTrunSec
050c9f2759
update test exmaple in README 2021-04-03 22:42:47 -07:00
GTrunSec
8f0e518bc0
compat nixpkgs and change to testing-python.nix 2021-04-03 22:37:13 -07:00
GTrunSec
842c903201
chore: enhance nix-flake 2021-04-03 21:57:02 -07:00
Jaka Hudoklin
473a18371d
Merge pull request #25 from Mic92/flake
add flake.nix
2021-02-21 19:54:37 +01:00
Jörg Thalheim
cba0fd9410
add flake.nix 2020-12-29 11:16:27 +01:00
Jaka Hudoklin
611059a329 fix(tests): fix helm tests 2020-04-04 19:22:57 +07:00
Jaka Hudoklin
b2c91dfa4b fix tests, do not test k8s 1.8 to 1.10 anymore 2020-04-04 18:44:43 +07:00
Jaka Hudoklin
3534f5fc61 feat(k8s): deprecate createCustomTypesFromCRDs, only support in legacy 2020-04-04 18:26:11 +07:00