From b97ca45d12d8635d7b39da81cc6cf00c239d4c1b Mon Sep 17 00:00:00 2001 From: Calin Don Date: Thu, 28 Sep 2023 22:22:41 +0300 Subject: [PATCH] Drop usage of deprecated batch/v1beta1 api --- pkg/controller/wordpress/wordpress_controller.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/controller/wordpress/wordpress_controller.go b/pkg/controller/wordpress/wordpress_controller.go index c6ca01ea..09ff48e8 100644 --- a/pkg/controller/wordpress/wordpress_controller.go +++ b/pkg/controller/wordpress/wordpress_controller.go @@ -21,7 +21,7 @@ import ( "github.com/presslabs/controller-util/syncer" appsv1 "k8s.io/api/apps/v1" - batchv1beta1 "k8s.io/api/batch/v1beta1" + batchv1 "k8s.io/api/batch/v1" corev1 "k8s.io/api/core/v1" netv1 "k8s.io/api/networking/v1" "k8s.io/apimachinery/pkg/api/errors" @@ -208,7 +208,7 @@ func (r *ReconcileWordpress) cleanupCronJob(ctx context.Context, wp *wordpress.W Namespace: wp.Namespace, } - cronJob := &batchv1beta1.CronJob{} + cronJob := &batchv1.CronJob{} if err := r.Get(ctx, cronKey, cronJob); err != nil { return ignoreNotFound(err)