mirror of https://github.com/k3s-io/k3s
Merge pull request #62991 from tomoe/cronjob-prune
Automatic merge from submit-queue (batch tested with PRs 64281, 62991). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Whitelist CronJob for kubectl apply --prune **What this PR does / why we need it**: Support CronJob for kubectl apply --prune **Special notes for your reviewer**: N/A **Release note**: ```release-note kubectl apply --prune supports CronJob resource. ```pull/8/head
commit
595059bb65
|
@ -539,6 +539,7 @@ func getRESTMappings(mapper meta.RESTMapper, pruneResources *[]pruneResource) (n
|
|||
{"", "v1", "Secret", true},
|
||||
{"", "v1", "Service", true},
|
||||
{"batch", "v1", "Job", true},
|
||||
{"batch", "v1beta1", "CronJob", true},
|
||||
{"extensions", "v1beta1", "DaemonSet", true},
|
||||
{"extensions", "v1beta1", "Deployment", true},
|
||||
{"extensions", "v1beta1", "Ingress", true},
|
||||
|
|
Loading…
Reference in New Issue