fix(tests): new resource naming

This commit is contained in:
Jaka Hudoklin 2019-09-27 18:29:00 +02:00
parent ec3f7ecb10
commit 2f3669a961
No known key found for this signature in database
GPG key ID: 11AA2A62319E4968
9 changed files with 30 additions and 29 deletions

View file

@ -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 = "* * * * *";
}