Skip to content

Commit 3709f50

Browse files
committed
Drop scheduled jobs support
1 parent 7bfe489 commit 3709f50

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

pkg/api/meta/pods.go

-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ var resourcesToCheck = map[schema.GroupResource]schema.GroupKind{
5656
batch.Resource("jobs"): batch.Kind("Job"),
5757
batch.Resource("jobtemplates"): batch.Kind("JobTemplate"),
5858

59-
// TODO do we still need this or is cronjob sufficient?
60-
batch.Resource("scheduledjobs"): batch.Kind("ScheduledJob"),
6159
batch.Resource("cronjobs"): batch.Kind("CronJob"),
6260
extensions.Resource("deployments"): extensions.Kind("Deployment"),
6361
extensions.Resource("replicasets"): extensions.Kind("ReplicaSet"),

test/integration/etcd_storage_path_test.go

-5
Original file line numberDiff line numberDiff line change
@@ -495,11 +495,6 @@ var etcdStorageData = map[schema.GroupVersionResource]struct {
495495
stub: `{"metadata": {"name": "cj1"}, "spec": {"jobTemplate": {"spec": {"template": {"metadata": {"labels": {"controller-uid": "uid0"}}, "spec": {"containers": [{"image": "fedora:latest", "name": "container0"}], "dnsPolicy": "ClusterFirst", "restartPolicy": "Never"}}}}, "schedule": "* * * * *"}}`,
496496
expectedEtcdPath: "kubernetes.io/cronjobs/etcdstoragepathtestnamespace/cj1",
497497
},
498-
gvr("batch", "v2alpha1", "scheduledjobs"): {
499-
stub: `{"metadata": {"name": "cj2"}, "spec": {"jobTemplate": {"spec": {"template": {"metadata": {"labels": {"controller-uid": "uid0"}}, "spec": {"containers": [{"image": "fedora:latest", "name": "container0"}], "dnsPolicy": "ClusterFirst", "restartPolicy": "Never"}}}}, "schedule": "* * * * *"}}`,
500-
expectedEtcdPath: "kubernetes.io/cronjobs/etcdstoragepathtestnamespace/cj2",
501-
expectedGVK: gvkP("batch", "v2alpha1", "CronJob"), // scheduledjobs were deprecated by cronjobs
502-
},
503498
// --
504499

505500
// k8s.io/kubernetes/pkg/apis/certificates/v1alpha1

0 commit comments

Comments
 (0)