Skip to content

Commit f7fd089

Browse files
authored
Use updated CronJob API
Use the new CronJob API version. Fixes... ``` W0606 07:06:02.402364 1 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob ```
1 parent 31430c9 commit f7fd089

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func informerForName(name string, i informers.SharedInformerFactory) (cache.Shar
107107
case "daemonset":
108108
return i.Apps().V1().DaemonSets().Informer(), wrapper.WrapDaemonSet, nil
109109
case "cronjob":
110-
return i.Batch().V1beta1().CronJobs().Informer(), wrapper.WrapCronJob, nil
110+
return i.Batch().V1().CronJobs().Informer(), wrapper.WrapCronJob, nil
111111
}
112112

113113
return nil, nil, fmt.Errorf("Unsupported informer name %s", name)

0 commit comments

Comments
 (0)