mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
feat(k8s): create kubernetes.result output that output json file
This commit is contained in:
parent
7855c4adff
commit
80cb43fcea
1 changed files with 8 additions and 0 deletions
|
|
@ -308,6 +308,11 @@ in {
|
|||
description = "Generated kubernetes list object";
|
||||
type = types.attrs;
|
||||
};
|
||||
|
||||
result = mkOption {
|
||||
description = "Generated kubernetes JSON file";
|
||||
type = types.package;
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
|
|
@ -398,5 +403,8 @@ in {
|
|||
items = config.kubernetes.objects;
|
||||
labels."kubenix/project-name" = config.kubenix.project;
|
||||
};
|
||||
|
||||
kubernetes.result =
|
||||
pkgs.writeText "kubenix-generated.json" (builtins.toJSON cfg.generated);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue