diff --git a/universal/ubi10/Dockerfile b/universal/ubi10/Dockerfile index c7a59ed7..be0d2ac7 100644 --- a/universal/ubi10/Dockerfile +++ b/universal/ubi10/Dockerfile @@ -472,6 +472,41 @@ fi RUN curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-${TARGETARCH} && \ install skaffold /usr/local/bin/ +## Google Cloud CLI +RUN < /usr/share/bash-completion/completions/oc tkn completion bash > /usr/share/bash-completion/completions/tkn kubectl completion bash > /usr/share/bash-completion/completions/kubectl cat ${NVM_DIR}/bash_completion > /usr/share/bash-completion/completions/nvm +if [ -f /usr/local/google-cloud-sdk/completion.bash.inc ]; then + cat /usr/local/google-cloud-sdk/completion.bash.inc > /usr/share/bash-completion/completions/gcloud +fi EOF ## Add sdkman's init script launcher to the end of ${PROFILE_EXT} since we are not adding it on sdkman install diff --git a/universal/ubi9/Dockerfile b/universal/ubi9/Dockerfile index f8461b5e..0e71a6ec 100644 --- a/universal/ubi9/Dockerfile +++ b/universal/ubi9/Dockerfile @@ -440,6 +440,41 @@ fi RUN curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-${TARGETARCH} && \ install skaffold /usr/local/bin/ +## Google Cloud CLI +RUN < /usr/share/bash-completion/completions/oc tkn completion bash > /usr/share/bash-completion/completions/tkn kubectl completion bash > /usr/share/bash-completion/completions/kubectl cat ${NVM_DIR}/bash_completion > /usr/share/bash-completion/completions/nvm +if [ -f /usr/local/google-cloud-sdk/completion.bash.inc ]; then + cat /usr/local/google-cloud-sdk/completion.bash.inc > /usr/share/bash-completion/completions/gcloud +fi EOF ## Add sdkman's init script launcher to the end of ${PROFILE_EXT} since we are not adding it on sdkman install