mirror of
https://github.com/outbackdingo/kubernetes.git
synced 2026-02-06 09:26:33 +00:00
Automatic merge from submit-queue. 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>. Fix kubectl explain for cronjobs **What this PR does / why we need it**: `kubectl explain cronjob` was failing with `error: Couldn't find resource for "batch/v1, Kind=CronJob"` the reason for that is that even though we were getting the group and version from the mapper, we always rewrote it with the default value for a specific group, unless user specified the output version. **Special notes for your reviewer**: **Release note**: ```release-note Fix kubectl explain for resources not existing in default version of API group ``` for review: /assign @juanvallejo for approval: /assign @deads2k