mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 08:00:06 +01:00
fix tests and examples
This commit is contained in:
parent
80cb43fcea
commit
acd93f0748
8 changed files with 20 additions and 16 deletions
|
|
@ -16,14 +16,15 @@ in {
|
|||
test = {
|
||||
name = "legacy-crd";
|
||||
description = "Simple test tesing kubenix legacy integration with crds crd";
|
||||
enable = builtins.compareVersions config.kubernetes.version "1.13" >= 0;
|
||||
assertions = [{
|
||||
message = "should define claim in module";
|
||||
message = "should define crd in module";
|
||||
assertion =
|
||||
hasObject {kind = "SecretClaim"; name = "secret-claim";};
|
||||
hasObject {kind = "SecretClaim"; name = "module-claim";};
|
||||
} {
|
||||
message = "should define claim in root";
|
||||
message = "should define crd in root";
|
||||
assertion =
|
||||
hasObject {kind = "SecretClaim"; name = "my-claim";};
|
||||
hasObject {kind = "SecretClaim"; name = "root-claim";};
|
||||
}];
|
||||
};
|
||||
|
||||
|
|
@ -92,11 +93,12 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
kubernetes.modules.secret-claim = {
|
||||
kubernetes.modules.module-claim = {
|
||||
module = "secret-claim";
|
||||
configuration.path = "tokens/test";
|
||||
};
|
||||
|
||||
kubernetes.customResources.secret-claims.my-claim = {
|
||||
kubernetes.customResources.secret-claims.root-claim = {
|
||||
spec = {
|
||||
path = "secrets/test2";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue