Skip to content

Commit 1d51aaf

Browse files
xinredhatMo3m3n
authored andcommitted
print out hypershfit cluster credential
1 parent 02e55e5 commit 1d51aaf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ci/images/ci-runner/hack/bin/deploy-cluster.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ deploy_cluster() {
4343
echo "Waited $wait_period seconds..."
4444
done
4545

46-
echo "Hypershift is ready, the following is the cluster kubeconfig"
46+
echo "Hypershift is ready, The following is Cluster credentials"
47+
local pass
48+
pass="$(kubectl get secret -n clusters "${CLUSTER_NAME}"-kubeadmin-password -o json | jq -r .data.password | base64 -d)"
49+
echo "kubeadmin:${pass}"
50+
echo "The following is the cluster kubeconfig"
51+
4752
hypershift create kubeconfig --name "$CLUSTER_NAME" | tee "$WORKSPACE/kubeconfig"
4853
}
4954

0 commit comments

Comments
 (0)