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

Add olm resources to default must-gather #182

Merged
merged 1 commit into from
Oct 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion collection-scripts/gather
Expand Up @@ -33,11 +33,13 @@ resources+=(imagecontentsourcepolicies.operator.openshift.io)
resources+=(networks.operator.openshift.io)

# Run the Collection of Resources using inspect
# running accross all-namespaces for the few "Autoscaler" resouces.
for resource in "${resources[@]}"; do
oc adm inspect --dest-dir must-gather ${resource}
done

# Gather optional operator resources from all namespaces
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO this should go into its own script (encase we ever need to add/filter things). Calling it by default from this script is fine (provided the collection is not astronomical amounts of data/information).

/usr/bin/gather_olm

# Gather etcd information
/usr/bin/gather_etcd

Expand Down
3 changes: 3 additions & 0 deletions collection-scripts/gather_olm
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

oc adm inspect --dest-dir=must-gather -A olm