Merge pull request #55218 from chentao1596/optimize-error-nomatchkind
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>.
Print apiVersion info when failed to execute kubectl apply -f XXX.yaml
**What this PR does / why we need it**:
Fixes https://github.com/kubernetes/kubernetes/issues/55216
**Special notes for your reviewer**:
**Release note**:
```release-note
```
Showing
Please
register
or
sign in
to comment