mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 08:00:06 +01:00
feat: initial back compatibility for kubenix 1.0
This commit is contained in:
parent
2f3669a961
commit
ff59c7d905
3 changed files with 203 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ let
|
|||
./k8s/order.nix
|
||||
./k8s/submodule.nix
|
||||
./k8s/imports.nix
|
||||
./k8s/v1/modules.nix
|
||||
./helm/simple.nix
|
||||
./istio/bookinfo.nix
|
||||
./submodules/simple.nix
|
||||
|
|
|
|||
33
tests/k8s/v1/modules.nix
Normal file
33
tests/k8s/v1/modules.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ config, lib, kubenix, pkgs, k8sVersion, ... }: {
|
||||
|
||||
imports = with kubenix.modules; [ test k8s v1.modules ];
|
||||
|
||||
test = {
|
||||
name = "k8s-v1-modules";
|
||||
description = "Simple test tesing CRD";
|
||||
assertions = [];
|
||||
};
|
||||
|
||||
kubernetes.version = k8sVersion;
|
||||
|
||||
kubernetes.moduleDefinitions.app.module = { config, k8s, ... }: {
|
||||
kubernetes.resources.deployments.app = {
|
||||
spec = {
|
||||
replicas = 2;
|
||||
selector = {
|
||||
matchLabels.app = "app";
|
||||
};
|
||||
template.spec = {
|
||||
containers.app = {
|
||||
image = "hello-world";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
kubernetes.modules.myapp = {
|
||||
module = "app";
|
||||
namespace = "test";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue