Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions linux-installer/idt-installer
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ function install_darwin_deps {
elif [[ "$FORCE" == true ]]; then
brew upgrade kubernetes-helm
fi

#-- oc:
install_oc
}

#------------------------------------------------------------------------------
Expand Down Expand Up @@ -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
}

#------------------------------------------------------------------------------
Expand Down Expand Up @@ -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
}

#------------------------------------------------------------------------------
Expand All @@ -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
Expand Down