Use batch/v1 instead of batch/v1beta1 (#5562)

This commit is contained in:
hongming
2023-03-03 10:37:38 +08:00
committed by GitHub
parent 24e7f11489
commit f7d0addf9e
4 changed files with 12 additions and 14 deletions

View File

@@ -27,7 +27,6 @@ import (
"time"
"github.com/emicklei/go-restful"
"k8s.io/apimachinery/pkg/api/errors"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
@@ -472,7 +471,7 @@ func (s *APIServer) waitForResourceSync(ctx context.Context) error {
{Group: "batch", Version: "v1"}: {
"jobs",
},
{Group: "batch", Version: "v1beta1"}: {
{Group: "batch", Version: "v1"}: {
"cronjobs",
},
{Group: "networking.k8s.io", Version: "v1"}: {