You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo"$(date ${ts_format}) DEBUG [${probe_name}] - Could not construct GraphQL endpoint, it can be set directly via SE_GRID_GRAPHQL_URL. Bypass the probe checks for now."
11
+
if [ -z"${GRID_GRAPHQL_URL}" ];then
12
+
echo"$(date ${ts_format}) DEBUG [${probe_name}] - Could not construct GraphQL endpoint, please provide SE_HUB_HOST (or SE_ROUTER_HOST) and SE_HUB_PORT (or SE_ROUTER_PORT). Bypass the probe checks for now."
if [ -n"${SE_DISTRIBUTOR_HOST}" ] && [ -n"${SE_DISTRIBUTOR_PORT}" ];then
31
-
DISTRIBUTED_MODE=true
32
-
echo"$(date +%FT%T%Z) [${probe_name}] - Detected full distributed mode: ${DISTRIBUTED_MODE}. Since SE_DISTRIBUTOR_HOST and SE_DISTRIBUTOR_PORT are set in Node ConfigMap"
33
-
else
34
-
DISTRIBUTED_MODE=false
35
-
echo"$(date +%FT%T%Z) [${probe_name}] - Detected full distributed mode: ${DISTRIBUTED_MODE}"
36
-
fi
37
-
}
38
-
is_full_distributed_mode
39
-
40
-
functionget_grid_url() {
41
-
if [ -z"${SE_HUB_HOST:-$SE_ROUTER_HOST}" ] || [ -z"${SE_HUB_PORT:-$SE_ROUTER_PORT}" ];then
42
-
echo"$(date +%FT%T%Z) [${probe_name}] - There is no configured HUB or ROUTER host. preStop ignores to send drain request to upstream."
43
-
grid_url=""
44
-
fi
45
-
if [ -n"${SE_BASIC_AUTH}" ] && [ "${SE_BASIC_AUTH}"!="*@" ];then
echo"$(date +%FT%T%Z) [${probe_name}] - Host requires Basic Auth. Please add the credentials to the SE_BASIC_AUTH variable (e.g: user:password). preStop ignores to send drain request to upstream."
55
-
grid_url=""
56
-
fi
57
-
if [ "${grid_url_checks}"="404" ];then
58
-
echo"$(date +%FT%T%Z) [${probe_name}] - The Grid is not available or it might have /subPath configured. Please wait a moment or check the SE_SUB_PATH variable if needed."
59
-
fi
60
-
}
61
-
62
-
functionsignal_distributor_to_drain_node() {
63
-
if [ "${DISTRIBUTED_MODE}"=true ];then
64
-
echo"$(date +%FT%T%Z) [${probe_name}] - Signaling Distributor to drain node"
echo"$(date +%FT%T%Z) [${probe_name}] - There is no configured HUB/ROUTER host or SE_NODE_GRID_URL isn't set. preStop ignores to send drain request to upstream."
0 commit comments