Automatic merge from submit-queue Make kubectl label and annotate more consistent **What this PR does / why we need it**: This makes the label and annotate cmd files more consistent which should help with code maintenance. Some of the main changes: - add dryrun to annotate (can push this in a different PR if requested) - use Complete(), Validate() and RunX() - don't place dynamic variables in the options (only user options and args) - call the NewBuilder() in the Run function. **Which issue this PR fixes** fixes #34151 **Special notes for your reviewer**: Note: you *can* now diff the two files and the changes make sense. **Release note**: ```release-note kubectl annotate now supports --dry-run ```
12 KiB
12 KiB