From 0f95aecc3fdc6e4c350600cd0f0e25b79e613d74 Mon Sep 17 00:00:00 2001 From: Fernand Galiana Date: Wed, 30 Jun 2021 06:52:57 -0600 Subject: [PATCH] K9s 1167/cronjob trigger with feelings (#1179) * fix cron triggers * fix cron triggers again... --- .gitignore | 1 + internal/dao/registry.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 2614fe70..0fc43836 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ faas .settings/* demos /code +kind \ No newline at end of file diff --git a/internal/dao/registry.go b/internal/dao/registry.go index 6092c785..7add4c11 100644 --- a/internal/dao/registry.go +++ b/internal/dao/registry.go @@ -43,8 +43,8 @@ func AccessorFor(f Factory, gvr client.GVR) (Accessor, error) { client.NewGVR("v1/nodes"): &Node{}, client.NewGVR("apps/v1/deployments"): &Deployment{}, client.NewGVR("apps/v1/daemonsets"): &DaemonSet{}, - client.NewGVR("apps/v1/daemonsets"): &DaemonSet{}, client.NewGVR("apps/v1/statefulsets"): &StatefulSet{}, + client.NewGVR("batch/v1/cronjobs"): &CronJob{}, client.NewGVR("batch/v1beta1/cronjobs"): &CronJob{}, client.NewGVR("batch/v1/jobs"): &Job{}, client.NewGVR("openfaas"): &OpenFaas{},