mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 08:00:06 +01:00
rm: fix nixosPath
nixosPath would get reified in the nix store as /nix/store/<hash>-nixos which breakes any referenced from within ./nixpkgs/nixos to ../lib or ../pkgs
This commit is contained in:
parent
8f9729870f
commit
e575c23570
4 changed files with 4 additions and 8 deletions
|
|
@ -10,7 +10,6 @@ let
|
||||||
|
|
||||||
defaultSpecialArgs = {
|
defaultSpecialArgs = {
|
||||||
inherit kubenix;
|
inherit kubenix;
|
||||||
nixosPath = pkgs.path + "/nixos";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# evalModules with same interface as lib.evalModules and kubenix as
|
# evalModules with same interface as lib.evalModules and kubenix as
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ nixosPath, config, pkgs, lib, kubenix, ... }:
|
{ config, pkgs, lib, kubenix, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
# nixos-k8s implements nixos kubernetes testing runtime
|
# nixos-k8s implements nixos kubernetes testing runtime
|
||||||
|
|
||||||
{ nixosPath
|
{ config
|
||||||
, config
|
|
||||||
, pkgs
|
, pkgs
|
||||||
, lib
|
, lib
|
||||||
, ...
|
, ...
|
||||||
|
|
@ -74,7 +73,7 @@ let
|
||||||
'';
|
'';
|
||||||
|
|
||||||
test =
|
test =
|
||||||
with import "${nixosPath}/tests/kubernetes/base.nix" { inherit pkgs; inherit (pkgs) system; };
|
with import "${pkgs.path}/nixos/tests/kubernetes/base.nix" { inherit pkgs; inherit (pkgs) system; };
|
||||||
mkKubernetesSingleNodeTest {
|
mkKubernetesSingleNodeTest {
|
||||||
inherit extraConfiguration;
|
inherit extraConfiguration;
|
||||||
inherit (config.testing) name;
|
inherit (config.testing) name;
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,6 @@
|
||||||
, lib ? pkgs.lib
|
, lib ? pkgs.lib
|
||||||
, kubenix ? (import ../. { }).default
|
, kubenix ? (import ../. { }).default
|
||||||
|
|
||||||
, nixosPath ? toString <nixpkgs/nixos>
|
|
||||||
|
|
||||||
, k8sVersion ? "1.21"
|
, k8sVersion ? "1.21"
|
||||||
, registryUrl ? throw "Registry url not defined"
|
, registryUrl ? throw "Registry url not defined"
|
||||||
, throwError ? true # whether any testing error should throw an error
|
, throwError ? true # whether any testing error should throw an error
|
||||||
|
|
@ -58,7 +56,7 @@ let
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
};
|
};
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit kubenix nixosPath;
|
inherit kubenix;
|
||||||
};
|
};
|
||||||
}).config;
|
}).config;
|
||||||
in
|
in
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue