From 14cbdb6f2aa84fba8ca2df90d6e48951a534eb03 Mon Sep 17 00:00:00 2001 From: Matteo Mori Date: Mon, 8 Jul 2024 10:29:03 +0100 Subject: [PATCH 1/2] fix: Remove check on deprecated API for CronJobs --- engine/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/types.go b/engine/types.go index a6cedde..c748cf8 100644 --- a/engine/types.go +++ b/engine/types.go @@ -4,7 +4,7 @@ import ( "fmt" appsv1 "k8s.io/api/apps/v1" - batchv1 "k8s.io/api/batch/v1beta1" + batchv1 "k8s.io/api/batch/v1" v1 "k8s.io/api/core/v1" networkingv1 "k8s.io/api/networking/v1" "k8s.io/apimachinery/pkg/runtime" From d321fa9e7f00f80c888993243f97f1cc3604069b Mon Sep 17 00:00:00 2001 From: Matteo Mori Date: Mon, 8 Jul 2024 11:07:33 +0100 Subject: [PATCH 2/2] fix: Updated return statement --- engine/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/types.go b/engine/types.go index c748cf8..662ff48 100644 --- a/engine/types.go +++ b/engine/types.go @@ -54,7 +54,7 @@ var ( WantCronJobs = Want{ "cronjobs", &batchv1.CronJob{}, func(cs *kubernetes.Clientset) rest.Interface { - return cs.BatchV1beta1().RESTClient() + return cs.BatchV1().RESTClient() }, } WantIngress = Want{