mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 08:00:06 +01:00
feat: initial work on metacontroller
This commit is contained in:
parent
978ada4312
commit
4b96377e42
5 changed files with 202 additions and 0 deletions
|
|
@ -32,6 +32,7 @@ let
|
|||
./submodules/defaults.nix
|
||||
./submodules/versioning.nix
|
||||
./module.nix
|
||||
./metacontroller/compositecontroller.nix
|
||||
];
|
||||
testing.defaults = ({kubenix, ...}: {
|
||||
imports = [kubenix.modules.k8s];
|
||||
|
|
|
|||
25
tests/metacontroller/compositecontroller.nix
Normal file
25
tests/metacontroller/compositecontroller.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ config, kubenix, ... }:
|
||||
|
||||
{
|
||||
imports = [ kubenix.modules.test kubenix.modules.metacontroller ];
|
||||
|
||||
test = {
|
||||
name = "metacontroller-controllers";
|
||||
description = "Testing metacontroller custom resources";
|
||||
};
|
||||
|
||||
kubernetes.api.compositecontrollers.test = {
|
||||
spec = {
|
||||
generateSelector = true;
|
||||
parentResource = {
|
||||
apiVersion = "ctl.enisoc.com/v1";
|
||||
resource = "things";
|
||||
};
|
||||
childResources = [{
|
||||
apiVersion = "v1";
|
||||
resource = "pods";
|
||||
}];
|
||||
hooks.sync.webhook.url = "http://thing-controller.metacontroller/sync";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue