Skip to content

Commit

Permalink
fix diagnose
Browse files Browse the repository at this point in the history
Signed-off-by: ssz1997 <[email protected]>
  • Loading branch information
ssz1997 committed Jan 29, 2022
1 parent c2ab66a commit 6be611d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/diagnose-fluid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6be611d

Please sign in to comment.