mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
fix(modules): use customResourceDefinitions from global module
This commit is contained in:
parent
722e001790
commit
9b3bd3b252
4 changed files with 26 additions and 3 deletions
|
|
@ -1,3 +1,5 @@
|
|||
{ customResourceDefinitions ? null }:
|
||||
|
||||
{ config, lib, k8s, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
|
@ -282,7 +284,11 @@ let
|
|||
} // extraOptions;
|
||||
}));
|
||||
}
|
||||
) config.kubernetes.resources.customResourceDefinitions;
|
||||
) (
|
||||
if customResourceDefinitions == null
|
||||
then config.kubernetes.resources.customResourceDefinitions
|
||||
else customResourceDefinitions
|
||||
);
|
||||
in {
|
||||
inherit swaggerDefinitions definitions exportedDefinitions kubernetesResourceOptions customResourceOptions;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue