From bffa96efefc783c0dc3236bb72be7caac98dda18 Mon Sep 17 00:00:00 2001 From: Shawn Sun <32376495+ssz1997@users.noreply.github.com> Date: Sat, 29 Jan 2022 19:06:53 -0500 Subject: [PATCH] fix diagnose (#1402) Signed-off-by: ssz1997 --- tools/diagnose-fluid.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/diagnose-fluid.sh b/tools/diagnose-fluid.sh index e2c76fd9786..872f77a3131 100644 --- a/tools/diagnose-fluid.sh +++ b/tools/diagnose-fluid.sh @@ -65,7 +65,7 @@ core_component() { mkdir -p "$diagnose_dir/pods-${namespace}" pods=$(kubectl get po -n ${namespace} "${constrains}" | awk '{print $1}' | grep -v NAME) for po in ${pods}; do - if [[ "${namespace}"="${fluid_namesapce}" ]]; then + if [[ "${namespace}" == "${fluid_namespace}" ]]; then kubectl logs "${po}" -c "$container" -n ${namespace} &>"$diagnose_dir/pods-${namespace}/${po}-${container}.log" 2>&1 else kubectl cp "${namespace}/${po}":/opt/alluxio/logs -c "${container}" "$diagnose_dir/pods-${namespace}/${po}-${container}" 2>&1