mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 08:00:06 +01:00
36 lines
832 B
Nix
36 lines
832 B
Nix
{ config, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
imports = [ ../k8s.nix ];
|
|
|
|
options.metacontroller = {
|
|
compositeControllers = mkOption {
|
|
type = types.attrsOf (types.submodule ({ name, config, ... }: {
|
|
imports = [ ./compositecontroller.nix ];
|
|
|
|
options = {
|
|
name = mkOption {
|
|
description = "Name of the composite controller";
|
|
type = types.str;
|
|
default = name;
|
|
};
|
|
};
|
|
}));
|
|
default = {};
|
|
};
|
|
};
|
|
|
|
config = {
|
|
kubernetes.customResources = [{
|
|
group = "metacontroller.k8s.io";
|
|
version = "v1alpha1";
|
|
kind = "CompositeController";
|
|
resource = "compositecontrollers";
|
|
description = "Composite controller";
|
|
alias = "compositecontrollers";
|
|
module.imports = [ ./compositecontroller.nix ];
|
|
}];
|
|
};
|
|
}
|