Clean apply's prune and kube addons with batch/v1 CronJob

This commit is contained in:
Maciej Szulik 2021-06-02 14:27:29 +02:00
parent a9725892b7
commit 1619e8eb95
No known key found for this signature in database
GPG Key ID: F15E55D276FA84C4
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},