From 30c8e08c04d63208ec4b2006bba2a6b3e2ba21db Mon Sep 17 00:00:00 2001 From: steveclay Date: Fri, 15 Jan 2021 16:01:54 -0600 Subject: [PATCH] Install oc client --- linux-installer/idt-installer | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/linux-installer/idt-installer b/linux-installer/idt-installer index 0e2af4a..d32ba03 100755 --- a/linux-installer/idt-installer +++ b/linux-installer/idt-installer @@ -178,6 +178,9 @@ function install_darwin_deps { elif [[ "$FORCE" == true ]]; then brew upgrade kubernetes-helm fi + + #-- oc: + install_oc } #------------------------------------------------------------------------------ @@ -232,6 +235,9 @@ function install_deps_with_apt_get { curl -fsSL https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash log "Please review any setup requirements for 'helm' from: https://github.com/kubernetes/helm/blob/master/docs/install.md" fi + + #-- oc: + install_oc } #------------------------------------------------------------------------------ @@ -272,6 +278,9 @@ function install_deps_with_yum { curl -fsSL https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash log "Please review any setup requirements for 'helm' from: https://github.com/kubernetes/helm/blob/master/docs/install.md" fi + + #-- oc: + install_oc } #------------------------------------------------------------------------------ @@ -293,6 +302,18 @@ function install_docker { docker version } +#------------------------------------------------------------------------------ +function install_oc { + + #-- OpenShift oc: + log "Installing/updating external dependency: oc" + curl --progress-bar -LO https://mirror.openshift.com/pub/openshift-v4/clients/oc/latest/linux/oc.tar.gz + tar -xzvf oc.tar.gz oc + chmod +x oc + mv oc /usr/local/bin/ + rm oc.tar.gz +} + #------------------------------------------------------------------------------ function install_ibmcloud { if [[ -z "$(which ibmcloud)" ]]; then