Skip to content

Commit

Permalink
Drop usage of deprecated batch/v1beta1 api
Browse files Browse the repository at this point in the history
  • Loading branch information
calind committed Sep 28, 2023
1 parent 2b9660a commit 9b763fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/wordpress/wordpress_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 9b763fd

Please sign in to comment.