helm: filter null root objects
This commit is contained in:
parent
4e73ba0d6d
commit
70ba20d76f
1 changed files with 15 additions and 13 deletions
28
helm.nix
28
helm.nix
|
|
@ -112,19 +112,21 @@ in
|
|||
|
||||
objects =
|
||||
let
|
||||
list = importJSON (
|
||||
pkgs.chart2json.override { kubernetes-helm = cfg.package; } {
|
||||
inherit (releaseConfig)
|
||||
chart
|
||||
name
|
||||
namespace
|
||||
values
|
||||
kubeVersion
|
||||
includeCRDs
|
||||
noHooks
|
||||
apiVersions
|
||||
;
|
||||
}
|
||||
list = lib.filter (x: x != null) (
|
||||
importJSON (
|
||||
pkgs.chart2json.override { kubernetes-helm = cfg.package; } {
|
||||
inherit (releaseConfig)
|
||||
chart
|
||||
name
|
||||
namespace
|
||||
values
|
||||
kubeVersion
|
||||
includeCRDs
|
||||
noHooks
|
||||
apiVersions
|
||||
;
|
||||
}
|
||||
)
|
||||
);
|
||||
in
|
||||
list
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue