mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
feat: rename kubenix.all to kubenix.module
This commit is contained in:
parent
a6cea15f34
commit
e260ad9bb4
4 changed files with 6 additions and 6 deletions
|
|
@ -5,5 +5,5 @@
|
||||||
testing = ./testing;
|
testing = ./testing;
|
||||||
helm = ./helm;
|
helm = ./helm;
|
||||||
docker = ./docker;
|
docker = ./docker;
|
||||||
all = ./all.nix;
|
module = ./module.nix;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ in {
|
||||||
config = {
|
config = {
|
||||||
submodules.defaults = [{
|
submodules.defaults = [{
|
||||||
default = {
|
default = {
|
||||||
imports = [ kubenix.all ];
|
imports = [ kubenix.module ];
|
||||||
kubernetes.version = mkDefault config.kubernetes.version;
|
kubernetes.version = mkDefault config.kubernetes.version;
|
||||||
kubernetes.api.defaults =
|
kubernetes.api.defaults =
|
||||||
mkIf config.kubernetes.propagateDefaults config.kubernetes.api.defaults;
|
mkIf config.kubernetes.propagateDefaults config.kubernetes.api.defaults;
|
||||||
|
|
@ -37,7 +37,7 @@ let
|
||||||
./submodules/simple.nix
|
./submodules/simple.nix
|
||||||
./submodules/defaults.nix
|
./submodules/defaults.nix
|
||||||
./submodules/versioning.nix
|
./submodules/versioning.nix
|
||||||
./all.nix
|
./module.nix
|
||||||
];
|
];
|
||||||
testing.defaults = ({kubenix, ...}: {
|
testing.defaults = ({kubenix, ...}: {
|
||||||
imports = [kubenix.k8s];
|
imports = [kubenix.k8s];
|
||||||
|
|
|
||||||
|
|
@ -7,12 +7,12 @@ let
|
||||||
deployment = cfg.kubernetes.api.deployments.nginx;
|
deployment = cfg.kubernetes.api.deployments.nginx;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
kubenix.all
|
kubenix.module
|
||||||
];
|
];
|
||||||
|
|
||||||
test = {
|
test = {
|
||||||
name = "all";
|
name = "module";
|
||||||
description = "Test testing all submodule";
|
description = "Test testing kubenix module";
|
||||||
assertions = [{
|
assertions = [{
|
||||||
message = "Namespace not propagated";
|
message = "Namespace not propagated";
|
||||||
assertion = deployment.metadata.namespace == "test";
|
assertion = deployment.metadata.namespace == "test";
|
||||||
Loading…
Add table
Add a link
Reference in a new issue