mirror of
https://github.com/outbackdingo/kubernetes.git
synced 2026-02-08 10:20:22 +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>. kubectl should return an error if "-l" and "--all" are both specified **What this PR does / why we need it**: Per discussion in [#50497](https://github.com/kubernetes/kubernetes/pull/50497#discussion_r134881507) **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: /assign @caesarxuchao @mengqiy **Release note**: ```release-note kubectl should return an error if "-l" and "--all" are both specified ```