Merge "Add shell autocompletion for kubectl"

This commit is contained in:
Zuul 2019-08-12 18:45:21 +00:00 committed by Gerrit Code Review
commit 9cca9341f5
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,10 @@ echo "{{ encrypted_tarball | b64enc }}" | base64 -d | {{ decrypt_command }} | ta
{{ decrypt_teardown_command }}
set -x
# Enabling kubectl bash autocompletion
#
kubectl completion bash > /etc/bash_completion.d/kubectl
for DIR in "${CURATED_DIRS[@]}"; do
chmod -R go-rwx "${DIR}"
done