mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
fix(modules): fix customResources
This commit is contained in:
parent
3eb8bc0731
commit
d582830627
4 changed files with 56 additions and 20 deletions
|
|
@ -1,5 +1,3 @@
|
|||
{ customResourceDefinitions ? null }:
|
||||
|
||||
{ config, lib, k8s, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
|
@ -251,7 +249,7 @@ let
|
|||
|
||||
customResourceOptions = mapAttrs (groupName: crd:
|
||||
mkOption {
|
||||
description = "Custom resource for ${name}";
|
||||
description = "Custom resource for ${groupName}";
|
||||
type = types.attrsOf (types.submodule ({name, ...}: {
|
||||
options = {
|
||||
apiVersion = mkOption {
|
||||
|
|
@ -285,11 +283,7 @@ let
|
|||
}));
|
||||
default = {};
|
||||
}
|
||||
) (
|
||||
if customResourceDefinitions == null
|
||||
then config.kubernetes.resources.customResourceDefinitions
|
||||
else customResourceDefinitions
|
||||
);
|
||||
) config.kubernetes.resources.customResourceDefinitions;
|
||||
in {
|
||||
inherit swaggerDefinitions definitions exportedDefinitions kubernetesResourceOptions customResourceOptions;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue