mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
feat(k8s): rename variable
This commit is contained in:
parent
4b96377e42
commit
4f3ab41cf5
1 changed files with 2 additions and 2 deletions
|
|
@ -110,7 +110,7 @@ let
|
||||||
indexOf = lst: value:
|
indexOf = lst: value:
|
||||||
head (filter (v: v != -1) (imap0 (i: v: if v == value then i else -1) lst));
|
head (filter (v: v != -1) (imap0 (i: v: if v == value then i else -1) lst));
|
||||||
|
|
||||||
customResourceModules = map (cr: {config, ...}: let
|
customResourceOptions = map (cr: {config, ...}: let
|
||||||
module = {name, ...}: {
|
module = {name, ...}: {
|
||||||
imports = getDefaults cr.resource cr.group cr.version cr.kind;
|
imports = getDefaults cr.resource cr.group cr.version cr.kind;
|
||||||
options = {
|
options = {
|
||||||
|
|
@ -187,7 +187,7 @@ in {
|
||||||
imports = [
|
imports = [
|
||||||
(./generated + ''/v'' + cfg.version + ".nix")
|
(./generated + ''/v'' + cfg.version + ".nix")
|
||||||
apiOptions
|
apiOptions
|
||||||
] ++ customResourceModules;
|
] ++ customResourceOptions;
|
||||||
};
|
};
|
||||||
default = {};
|
default = {};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue