Skip to content

Commit

Permalink
Merge pull request #106 from majguo/fix-deployment-failure
Browse files Browse the repository at this point in the history
Fix deployment failure
  • Loading branch information
venunathb authored Jan 9, 2024
2 parents d54e5d5 + 37c6474 commit de4bce9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<groupId>com.ibm.websphere.azure</groupId>
<artifactId>azure.liberty.aro</artifactId>
<version>1.0.50</version>
<version>1.0.51</version>

<parent>
<groupId>com.microsoft.azure.iaas</groupId>
Expand Down
17 changes: 10 additions & 7 deletions src/main/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -258,18 +258,21 @@ apk update
apk add gettext
apk add apache2-utils
# Install the OpenShift CLI
wget https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-client-linux.tar.gz -q -P ~
mkdir ~/openshift
tar -zxvf ~/openshift-client-linux.tar.gz -C ~/openshift
echo 'export PATH=$PATH:~/openshift' >> ~/.bash_profile && source ~/.bash_profile
# Sign in to cluster
# Retrieve cluster credentials and api/console URLs
credentials=$(az aro list-credentials -g $clusterRGName -n $clusterName -o json)
kubeadminUsername=$(echo $credentials | jq -r '.kubeadminUsername')
kubeadminPassword=$(echo $credentials | jq -r '.kubeadminPassword')
apiServerUrl=$(az aro show -g $clusterRGName -n $clusterName --query 'apiserverProfile.url' -o tsv)
consoleUrl=$(az aro show -g $clusterRGName -n $clusterName --query 'consoleProfile.url' -o tsv)
# Install the OpenShift CLI
downloadUrl=$(echo $consoleUrl | sed -e "s/https:\/\/console/https:\/\/downloads/g")
wget ${downloadUrl}amd64/linux/oc.tar -q -P ~
mkdir ~/openshift
tar xvf ~/oc.tar -C ~/openshift
echo 'export PATH=$PATH:~/openshift' >> ~/.bash_profile && source ~/.bash_profile
# Sign in to cluster
wait_login_complete $kubeadminUsername $kubeadminPassword "$apiServerUrl" $logFile
if [[ $? -ne 0 ]]; then
echo "Failed to sign into the cluster with ${kubeadminUsername}." >&2
Expand Down

0 comments on commit de4bce9

Please sign in to comment.