Skip to content

Commit

Permalink
add proxy config for private link in h health-check (#45297)
Browse files Browse the repository at this point in the history
  • Loading branch information
heliubj18 authored Nov 6, 2023
1 parent 0e0d0c5 commit 265bc89
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,15 @@ function check_node_status {
return 0
}

###Main###
if [ -f "${SHARED_DIR}/cluster-type" ] ; then
CLUSTER_TYPE=$(cat "${SHARED_DIR}/cluster-type")
if [[ "$CLUSTER_TYPE" == "osd" ]] || [[ "$CLUSTER_TYPE" == "rosa" ]]; then
echo "this cluster is ROSA-HyperShift"
export KUBECONFIG=${SHARED_DIR}/kubeconfig
if [ -f "${SHARED_DIR}/proxy-conf.sh" ] ; then
source "${SHARED_DIR}/proxy-conf.sh"
fi
print_clusterversion
check_node_status || exit 1
retry check_cluster_operators || exit 1
Expand Down

0 comments on commit 265bc89

Please sign in to comment.