Skip to content

Commit

Permalink
There is no need to run gather_odf_client script on non-provider setup
Browse files Browse the repository at this point in the history
Signed-off-by: oviner <[email protected]>
  • Loading branch information
OdedViner committed Sep 22, 2024
1 parent 1d7a847 commit 4aeb00a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions collection-scripts/gather_main
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,15 @@ procids+=($!)
gather_dr_resources &
procids+=($!)

gather_odf_client &
procids+=($!)
storagecluster_remote=$(oc get storagecluster --all-namespaces -o yaml | grep -i 'allowRemoteStorageConsumers' || true)
if [ -n "$storagecluster_remote" ]; then
echo "it is provider cluster"
gather_odf_client &
procids+=($!)
else
echo "it is not provider cluster"
fi


# Check if procid array has any values, if so, wait for them to finish
if [ ${#procids[@]} -ne 0 ]; then
Expand Down

0 comments on commit 4aeb00a

Please sign in to comment.