Black lives matter.

We stand in solidarity with the Black community.

Racism is unacceptable.

It conflicts with the core values of the Kubernetes project and our community does not tolerate it.

Enabling shell autocompletion

The Kubebuilder completion script can be generated with the command kubebuilder completion [bash|zsh|powershell]. Note that sourcing the completion script in your shell enables Kubebuilder autocompletion.

  • Once installed, go ahead and add the path /usr/local/bin/bash in the /etc/shells.

    echo “/usr/local/bin/bash” > /etc/shells

  • Make sure to use installed shell by current user.

    chsh -s /usr/local/bin/bash

  • Add following content in /.bash_profile or ~/.bashrc

# kubebuilder autocompletion
if [ -f /usr/local/share/bash-completion/bash_completion ]; then
. /usr/local/share/bash-completion/bash_completion
fi
. <(kubebuilder completion bash)
  • Restart terminal for the changes to be reflected.