Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no need to run gather_odf_client script on non-provider setup #197

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading