Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54094 from juanvallejo/jvallejo/exit-plugin-cmd-w…
…-correct-exit-code Automatic merge from submit-queue (batch tested with PRs 54107, 54184, 54377, 54094, 54111). 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>. exit with correct exit code on plugin failure **Release note**: ```release-note NONE ``` Correctly exits after a plugin command execution failure with the correct exit code. Related downstream bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1501756 **Before** ``` $ kubectl plugin will-fail-plugin ls: cannot access 'does-not-exist': No such file or directory error: exit status 2 $ echo $? 1 ``` **After** ``` $ kubectl plugin will-fail-plugin ls: cannot access 'does-not-exist': No such file or directory error: exit status 2 $ echo $? 2 ``` cc @fabianofranz
- Loading branch information