Skip to content

Commit 5fd2176

Browse files
Merge pull request #334 from openshift-cherrypick-robot/cherry-pick-333-to-release-4.12
OCPBUGS-4250: [release-4.12] backport PodNetworkConnectivityCheck gather script #334
2 parents 68c6a82 + d82d222 commit 5fd2176

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎collection-scripts/gather‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,8 @@ oc adm inspect --dest-dir must-gather --rotated-pod-logs "${group_resources_text
9797
# Gather SR-IOV resources
9898
/usr/bin/gather_sriov
9999

100+
# Gather PodNetworkConnectivityCheck
101+
/usr/bin/gather_podnetworkconnectivitycheck
102+
100103
# force disk flush to ensure that all data gathered is accessible in the copy container
101104
sync
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
BASE_COLLECTION_PATH="/must-gather"
3+
POD_NETWORK_CHECK="${BASE_COLLECTION_PATH}/pod_network_connectivity_check/"
4+
5+
mkdir -p ${POD_NETWORK_CHECK}
6+
7+
oc get podnetworkconnectivitychecks -n openshift-network-diagnostics -o yaml > ${POD_NETWORK_CHECK}/podnetworkconnectivitychecks.yaml

0 commit comments

Comments
 (0)