feat: initial work on metacontroller

This commit is contained in:
Jaka Hudoklin 2019-03-08 23:26:41 +01:00
parent 978ada4312
commit 4b96377e42
No known key found for this signature in database
GPG key ID: 6A08896BFD32BD95
5 changed files with 202 additions and 0 deletions

View 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";
};
};
}