mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 08:00:06 +01:00
feat(submodules): support for submodule passthru
This commit is contained in:
parent
7afbc91301
commit
a8dcc69d54
5 changed files with 30 additions and 30 deletions
|
|
@ -87,17 +87,8 @@ in {
|
|||
};
|
||||
}];
|
||||
|
||||
docker.export = mkMerge [
|
||||
(mapAttrsToList (_: i: i.image)
|
||||
(filterAttrs (_: i: i.registry != null) config.docker.images))
|
||||
|
||||
# passthru of docker exported images if passthru is enabled on submodule
|
||||
# and submodule has docker module loaded
|
||||
(flatten (mapAttrsToList (_: submodule:
|
||||
optionals
|
||||
(submodule.passthru.enable && (elem "docker" submodule.config._module.features))
|
||||
submodule.config.docker.export
|
||||
) config.submodules.instances))
|
||||
];
|
||||
# list of exported docker images
|
||||
docker.export = mapAttrsToList (_: i: i.image)
|
||||
(filterAttrs (_: i: i.registry != null) config.docker.images);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue