Cara Mengaktifkan OC Client Bash Completion untuk OpenShift dan OKD

Sebelum melakukan implementasi ini pastikan environtment yang digunakan adalah Sistem Operasi Linux dan pada linux tersebut sudah memiliki binary OC command.
Jika belum memiliki OC Client maka anda dapat mendownload di link dibawah ini.
OpenShift
OKD 

Setelah memiliki OC command berikut adalah langkah yang harus di lakukan.

Pertama-tama install package bash-completion.

Centos/RHEL :

yum -y install bash-completion

Ubuntu :

apt install -y bash-completion
or
apt-get install -y bash-completion

Setelah itu jalankan command berikut untuk menginisialisasi completion OC Client

oc completion bash >>/etc/bash_completion.d/oc_completion
bash

Test dengan melakukan command berikut OC [TAB] [TAB]

oc [tab] [tab]
adm              attach           completion       debug            ex               get              label            new-build        plugin           projects         rollout          secrets          tag
annotate         auth             config           delete           exec             idle             login            new-project      policy           proxy            rsh              serviceaccounts  version
api-resources    autoscale        convert          describe         explain          image            logout           observe          port-forward     registry         rsync            set              wait
api-versions     cancel-build     cp               diff             expose           import-image     logs             options          process          replace          run              start-build      whoami
apply            cluster-info     create           edit             extract          kustomize        new-app          patch            project          rollback         scale            status

Semoga Bermanfaat.

About the author
arisyi

Routecloud Networks

Information about Server, Linux and Computer Network.

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to Routecloud Networks.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.