Merge pull request #102528 from soltysh/cronjob_ga

Clean apply's prune and kube addons with batch/v1 CronJob
This commit is contained in:
Kubernetes Prow Robot 2021-06-02 08:02:31 -07:00 committed by GitHub
commit b2b4cb1725
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ if [ -z "${KUBECTL_PRUNE_WHITELIST_OVERRIDE:-}" ]; then
core/v1/Secret
core/v1/Service
batch/v1/Job
batch/v1beta1/CronJob
batch/v1/CronJob
apps/v1/DaemonSet
apps/v1/Deployment
apps/v1/ReplicaSet

View File

@ -184,7 +184,7 @@ func getRESTMappings(mapper meta.RESTMapper, pruneResources *[]pruneResource) (n
{"", "v1", "Secret", true},
{"", "v1", "Service", true},
{"batch", "v1", "Job", true},
{"batch", "v1beta1", "CronJob", true},
{"batch", "v1", "CronJob", true},
{"networking.k8s.io", "v1", "Ingress", true},
{"apps", "v1", "DaemonSet", true},
{"apps", "v1", "Deployment", true},