feat: refactor file structure module interfaces and other

This commit is contained in:
Jaka Hudoklin 2019-03-07 23:23:07 +01:00
parent 12a1c920c4
commit eac2d78667
No known key found for this signature in database
GPG key ID: 6A08896BFD32BD95
36 changed files with 58 additions and 139 deletions

View file

@ -5,9 +5,7 @@ with lib;
let
cfg = config.kubernetes.api.customresourcedefinitions.crontabs;
in {
imports = [
kubenix.k8s
];
imports = with kubenix.modules; [ test k8s ];
test = {
name = "k8s-1.13-crd";

View file

@ -5,9 +5,7 @@ with lib;
let
cfg = config.kubernetes.api.customresourcedefinitions.crontabs;
in {
imports = [
kubenix.k8s
];
imports = with kubenix.modules; [ test k8s ];
test = {
name = "k8s-crd";

View file

@ -1,15 +1,12 @@
{ config, lib, test, kubenix, k8s, ... }:
{ config, lib, kubenix, ... }:
with lib;
with k8s;
let
pod1 = config.kubernetes.api.pods.pod1;
pod2 = config.kubernetes.api.pods.pod2;
in {
imports = [
kubenix.k8s
];
imports = with kubenix.modules; [ test k8s ];
test = {
name = "k8s-defaults";

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, test, kubenix, images, ... }:
{ config, lib, pkgs, kubenix, images, ... }:
with lib;
@ -6,9 +6,7 @@ let
cfg = config.kubernetes.api.deployments.nginx;
image = images.nginx;
in {
imports = [
kubenix.k8s
];
imports = [ kubenix.modules.test kubenix.modules.k8s ];
test = {
name = "k8s-deployment";

View file

@ -5,9 +5,7 @@ with lib;
let
cfg = config.kubernetes.api.customresourcedefinitions.crontabs;
in {
imports = [
kubenix.k8s
];
imports = with kubenix.modules; [ test k8s ];
test = {
name = "k8s-order";

View file

@ -1,13 +1,9 @@
{ config, test, kubenix, k8s, ... }:
with k8s;
{ config, kubenix, ... }:
let
cfg = config.kubernetes.api.pods.nginx;
in {
imports = [
kubenix.k8s
];
imports = [ kubenix.modules.test kubenix.modules.k8s ];
test = {
name = "k8s-simple";