mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2026-02-02 09:25:10 +01:00
fix(tests): new resource naming
This commit is contained in:
parent
ec3f7ecb10
commit
2f3669a961
9 changed files with 30 additions and 29 deletions
|
|
@ -3,7 +3,7 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.kubernetes.api.customresourcedefinitions.crontabs;
|
||||
cfg = config.kubernetes.api.resources.customResourceDefinitions.crontabs;
|
||||
in {
|
||||
imports = with kubenix.modules; [ test k8s ];
|
||||
|
||||
|
|
@ -22,7 +22,7 @@ in {
|
|||
|
||||
kubernetes.version = k8sVersion;
|
||||
|
||||
kubernetes.api.customresourcedefinitions.crontabs = {
|
||||
kubernetes.resources.customResourceDefinitions.crontabs = {
|
||||
metadata.name = "crontabs.stable.example.com";
|
||||
spec = {
|
||||
group = "stable.example.com";
|
||||
|
|
@ -37,12 +37,13 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
kubernetes.customResources = [{
|
||||
kubernetes.customTypes = [{
|
||||
name = "crontabs";
|
||||
description = "CronTabs resources";
|
||||
|
||||
group = "stable.example.com";
|
||||
version = "v1";
|
||||
kind = "CronTab";
|
||||
resource = "crontabs";
|
||||
description = "CronTabs resources";
|
||||
module = {
|
||||
options.schedule = mkOption {
|
||||
description = "Crontab schedule script";
|
||||
|
|
@ -51,7 +52,7 @@ in {
|
|||
};
|
||||
}];
|
||||
|
||||
kubernetes.api.namespaces.test = {};
|
||||
kubernetes.resources.namespaces.test = {};
|
||||
|
||||
kubernetes.api."stable.example.com"."v1".CronTab.crontab.spec.schedule = "* * * * *";
|
||||
kubernetes.resources."stable.example.com"."v1".CronTab.crontab.spec.schedule = "* * * * *";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue