mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
feat(release): add istio generate script
This commit is contained in:
parent
de5114cfc0
commit
b96611bef4
1 changed files with 17 additions and 6 deletions
23
release.nix
23
release.nix
|
|
@ -1,26 +1,37 @@
|
|||
{pkgs ? import <nixpkgs> {}}:
|
||||
|
||||
let
|
||||
generate = path: import ./k8s/generator.nix {
|
||||
generateK8S = path: import ./k8s/generator.nix {
|
||||
inherit pkgs;
|
||||
inherit (pkgs) lib;
|
||||
inherit path;
|
||||
};
|
||||
|
||||
generateIstio = spec: import ./istio/generator.nix {
|
||||
inherit pkgs;
|
||||
inherit (pkgs) lib;
|
||||
inherit spec;
|
||||
};
|
||||
|
||||
kubenix = import ./. { inherit pkgs; };
|
||||
in {
|
||||
generate = pkgs.linkFarm "k8s-generated.nix" [{
|
||||
generate.k8s = pkgs.linkFarm "k8s-generated.nix" [{
|
||||
name = "v1.7.nix";
|
||||
path = generate ./k8s/specs/1.7/swagger.json;
|
||||
path = generateK8S ./k8s/specs/1.7/swagger.json;
|
||||
} {
|
||||
name = "v1.8.nix";
|
||||
path = generate ./k8s/specs/1.8/swagger.json;
|
||||
path = generateK8S ./k8s/specs/1.8/swagger.json;
|
||||
} {
|
||||
name = "v1.9.nix";
|
||||
path = generate ./k8s/specs/1.9/swagger.json;
|
||||
path = generateK8S ./k8s/specs/1.9/swagger.json;
|
||||
} {
|
||||
name = "v1.10.nix";
|
||||
path = generate ./k8s/specs/1.10/swagger.json;
|
||||
path = generateK8S ./k8s/specs/1.10/swagger.json;
|
||||
}];
|
||||
|
||||
generate.istio = pkgs.linkFarm "istio-generated.nix" [{
|
||||
name = "latest.nix";
|
||||
path = generateIstio ./istio/istio-schema.json;
|
||||
}];
|
||||
|
||||
test = kubenix.buildResources ({lib, config, kubenix, ...}: with lib; {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue