Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Commit

Permalink
Update IBM Cloud cluster command (#61)
Browse files Browse the repository at this point in the history
* Update IBM Cloud cluster command

* Remove old kubeconfig value
  • Loading branch information
Vishal Kaja authored Apr 6, 2020
1 parent 299839c commit 3ddccdf
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions bin/ibmcloud_login.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,14 @@ function configureCluster() {
ibmcloud login -r ${REGION} --apikey ${IBM_CLOUD_API_KEY}


ibmcloud ks cluster-config --cluster ${CLUSTER_NAME}
ibmcloud ks cluster config --cluster ${CLUSTER_NAME}

local homeDir="home"
if [[ -z ${TRAVIS+x} ]]; then
homeDir="Users"
fi

echo "Exporting KUBECONFIG=/${homeDir}/${USER}/.bluemix/plugins/container-service/clusters/${CLUSTER_NAME}/kube-config-${DATA_CENTER}-${CLUSTER_NAME}.yml"
export KUBECONFIG=/${homeDir}/${USER}/.bluemix/plugins/container-service/clusters/${CLUSTER_NAME}/kube-config-${DATA_CENTER}-${CLUSTER_NAME}.yml
}

# Execute
checkEnv
configureCluster
configureCluster

0 comments on commit 3ddccdf

Please sign in to comment.