Skip to content

Commit

Permalink
Merge pull request #30 from uswitch/fix/deprecated_api_check
Browse files Browse the repository at this point in the history
Fix CronJob API version compatibility issue
  • Loading branch information
MatteoMori8 authored Jul 8, 2024
2 parents f06ac8b + d321fa9 commit be6cbdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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{
Expand Down

0 comments on commit be6cbdc

Please sign in to comment.