-
Notifications
You must be signed in to change notification settings - Fork 39.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make kubectl bash-completion namespace and resource alias aware #23262
Make kubectl bash-completion namespace and resource alias aware #23262
Conversation
Labelling this PR as size/L |
local ret two_word_ns | ||
ret="" | ||
two_word_ns=false | ||
for w in ${words[@]}; do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
${words[@]} should be in quotes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
GCE e2e build/test passed for commit 98afa1fc96f7dfe78ae48512b8aca5b4f9bcacb2. |
5737184
to
b1ea0e3
Compare
GCE e2e build/test passed for commit 5737184fdbfda69e49abb1ee8115855648895d53. |
GCE e2e build/test passed for commit b1ea0e3f4366528938b87da8bad151841b7a5162. |
b1ea0e3
to
d065019
Compare
GCE e2e build/test passed for commit d06501945fc9704d8ede8745870289fc97208dd7. |
d065019
to
7272bfd
Compare
GCE e2e build/test failed for commit 7272bfdac2c026555671cdba7814397a323c74b4. Please reference the list of currently known flakes when examining this failure. If you request a re-test, you must reference the issue describing the flake. |
7272bfd
to
3c19b65
Compare
GCE e2e build/test failed for commit 3c19b65098a70317aed9e33acd590ea3eaf7fb4d. Please reference the list of currently known flakes when examining this failure. If you request a re-test, you must reference the issue describing the flake. |
3c19b65
to
a43e584
Compare
GCE e2e build/test passed for commit a43e58484f9b82f76a2c67ea853f8c53c0792523. |
a43e584
to
fb3ca8d
Compare
GCE e2e build/test passed for commit fb3ca8d9f5426389975870a233a04aa869e71aa8. |
@@ -135,6 +166,8 @@ __handle_noun() | |||
|
|||
if __contains_word "${words[c]}" "${must_have_one_noun[@]}"; then | |||
must_have_one_noun=() | |||
elif __contains_word "${words[c]%!s(MISSING)}" "${must_have_one_noun[@]}"; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
%!s(MISSING)
? looks like some bad golang somewhere...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bad escaping of bash code in golang string in fact: https://github.com/spf13/cobra/pull/255/files#diff-3db5cab63dbb32fff4264f5449fd2904R192
fb3ca8d
to
c9a749c
Compare
GCE e2e build/test passed for commit c9a749c08f3027380cd279e3cfe477a7938a85d6. |
c9a749c
to
6c36665
Compare
hack/update-godep-licenses.sh doesn't like me. |
GCE e2e build/test passed for commit 6c36665e1b988186644adf055462efa7dcc75dfc. |
bash4'ism in that script. |
6c36665
to
4ca3684
Compare
GCE e2e build/test passed for commit 4ca36845ca68d265d0b721af00afdf030eeff914. |
GCE e2e build/test passed for commit 34ccd3ce56639863d07bed9d3b06f8be589a3da5. |
- add namespace filtering to bash completion - add --namespace flag bash completion - add bash completion noun aliases - adapt to new cobra package structure
34ccd3c
to
f832aaf
Compare
Updated to latest cobra master with shellcheck fixes. |
GCE e2e build/test passed for commit f832aaf. |
@k8s-bot test this Tests are more than 48 hours old. Re-running tests. |
GCE e2e build/test passed for commit f832aaf. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test failed for commit f832aaf. Please reference the list of currently known flakes when examining this failure. If you request a re-test, you must reference the issue describing the flake. |
GCE e2e build/test passed for commit f832aaf. |
@k8s-bot test this Tests are more than 48 hours old. Re-running tests. |
GCE e2e build/test passed for commit f832aaf. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit f832aaf. |
Automatic merge from submit-queue |
…ete-loop-fix Bug 1712528 - oc delete of a static pod results in multiple attempts to re-create the mirror pod before succeeding Origin-commit: e4b9b95d5b5eb0108efa67619b42c7b3f1609074
--namespace
flag given before in the command line--namespace
rc