File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 27
27
modules ? [ ] ,
28
28
extraSpecialArgs ? { } ,
29
29
charts ? { } ,
30
+ libOverlay ? null ,
30
31
} :
31
32
import ./modules {
32
- inherit pkgs lib extraSpecialArgs kubenix ;
33
+ inherit pkgs lib extraSpecialArgs kubenix libOverlay ;
33
34
kubelib = nix-kube-generators ;
34
35
modules =
35
36
modules
47
48
extraSpecialArgs ? { } ,
48
49
envs ? { } ,
49
50
charts ? { } ,
51
+ libOverlay ? null ,
50
52
} :
51
53
lib . mapAttrs (
52
54
env : conf :
53
55
mkEnv {
54
- inherit pkgs lib charts ;
56
+ inherit pkgs lib charts libOverlay ;
55
57
extraSpecialArgs = extraSpecialArgs // ( conf . extraSpecialArgs or { } ) ;
56
58
modules =
57
59
[ { nixidy . target . rootPath = lib . mkDefault "./manifests/${ env } " ; } ]
Original file line number Diff line number Diff line change 5
5
kubenix ,
6
6
lib ? pkgs . lib ,
7
7
extraSpecialArgs ? { } ,
8
+ libOverlay ? null ,
8
9
} : let
9
10
extendedLib = import ../lib { inherit pkgs kubelib ; } ;
10
11
25
26
specialArgs =
26
27
{
27
28
inherit pkgs ;
28
- lib = extendedLib ;
29
+ lib =
30
+ if builtins . isFunction libOverlay
31
+ then extendedLib . extend libOverlay
32
+ else extendedLib ;
29
33
}
30
34
// extraSpecialArgs ;
31
35
} ;
You can’t perform that action at this time.
0 commit comments