mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-13 00:20:07 +01:00
fmt
This commit is contained in:
parent
a0ce293db8
commit
60592d3096
55 changed files with 23668 additions and 30925 deletions
|
|
@ -1,20 +1,25 @@
|
|||
{ config, lib, kubenix, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
latestCrontab = config.kubernetes.api.resources.cronTabs.latest;
|
||||
in
|
||||
{
|
||||
imports = with kubenix.modules; [ test k8s ];
|
||||
config,
|
||||
lib,
|
||||
kubenix,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
latestCrontab = config.kubernetes.api.resources.cronTabs.latest;
|
||||
in {
|
||||
imports = with kubenix.modules; [test k8s];
|
||||
|
||||
test = {
|
||||
name = "k8s-crd";
|
||||
description = "Simple test tesing CRD";
|
||||
enable = builtins.compareVersions config.kubernetes.version "1.8" >= 0;
|
||||
assertions = [{
|
||||
message = "Custom resource should have correct version set";
|
||||
assertion = latestCrontab.apiVersion == "stable.example.com/v2";
|
||||
}];
|
||||
assertions = [
|
||||
{
|
||||
message = "Custom resource should have correct version set";
|
||||
assertion = latestCrontab.apiVersion == "stable.example.com/v2";
|
||||
}
|
||||
];
|
||||
script = ''
|
||||
@pytest.mark.applymanifest('${config.kubernetes.resultYAML}')
|
||||
def test_testing_module(kube):
|
||||
|
|
@ -50,7 +55,6 @@ in
|
|||
type = types.str;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
{
|
||||
group = "stable.example.com";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue