Skip to content

Commit 0866ceb

Browse files
authored
OPCT-352: collect opct namespace data (#78)
**What this PR does / why we need it**: With the e2e controller, the logs is something nice to have to troubleshoot e2e failures. e2e logs will show if pods had been been mutated, helping the review phase. Controller is added in PR redhat-openshift-ecosystem/opct#160 **Which issue(s) this PR fixes** https://issues.redhat.com/browse/OPCT-352 **Checklist** - [x] Subject and description added to both, commit and PR. - [x] Relevant issues have been referenced. - [ ] This change includes docs. - [ ] This change includes unit tests.
1 parent 4205d4d commit 0866ceb

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

artifacts-collector/collector.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ collect_must_gather() {
4343
os_log_info "[executor][PluginID#${PLUGIN_ID}] Collecting must-gather"
4444
${UTIL_OC_BIN} adm must-gather --dest-dir=${MUST_GATHER_DIR}
4545

46-
# TODO: Pre-process data from must-gather to avoid client-side extra steps.
47-
# Examples of data to be processed:
48-
# > insights rules
46+
os_log_info "[executor][PluginID#${PLUGIN_ID}] Inspecting Namespace opct"
47+
${UTIL_OC_BIN} adm inspect namespace/opct --dest-dir=${MUST_GATHER_DIR}/inspect-opct
48+
49+
#> Pre-process data from must-gather to avoid client-side extra steps.
4950

5051
# Clean sensitive data
5152
clean_must_gather
@@ -57,6 +58,10 @@ collect_must_gather() {
5758
os_log_info "[executor][PluginID#${PLUGIN_ID}] Generating camgi report"
5859
camgi ${MUST_GATHER_DIR}/ > artifacts_must-gather_camgi.html || true
5960

61+
# TODO: Examples of additional data to be processed:
62+
# > insights rules
63+
64+
#> Pack must-gather data
6065
# Create the tarball file artifacts_must-gather.tar.xz
6166
os_log_info "[executor][PluginID#${PLUGIN_ID}] Packing must-gather"
6267
tar cfJ artifacts_must-gather.tar.xz ${MUST_GATHER_DIR}*

0 commit comments

Comments
 (0)