Skip to content

Commit c8f0c00

Browse files
authored
Collect gateway API resources (#5)
This adds all CRDs from gateway.networking.k8s.io group and their instances to the must gather.
1 parent abcda74 commit c8f0c00

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,7 @@ You will get a dump of:
2828
- All Sail operator CRD objects (Istio CNI, Istio, Istio Revision, etc.)
2929
- All Kiali CRD definitions
3030
- All Kiali CRD objects (Kiali, ossmconsole)
31+
- All gateway.networking.k8s.io group CRD definitions
32+
- All gateway.networking.k8s.io group instances
3133

3234
In order to get data about other parts of the cluster (not specific to service mesh) you should run just `oc adm must-gather` (without passing a custom image). Run `oc adm must-gather -h` to see more options.

gather_istio.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ get_log_collection_args() {
3131
fi
3232
}
3333

34-
# Get the CRDs that belong to Istio
34+
# Get Istio, sail operator, kiali and gateway.networking.k8s.io group CRDs
3535
function getCRDs() {
3636
local result=()
3737
local output
38-
output=$(oc get crds -o custom-columns=NAME:metadata.name --no-headers | grep -e '\.istio\.io' -e '\.sailoperator\.io' -e '\.kiali\.io')
38+
output=$(oc get crds -o custom-columns=NAME:metadata.name --no-headers | grep -e '\.istio\.io' -e '\.sailoperator\.io' -e '\.kiali\.io' -e '\.gateway\.networking\.k8s\.io')
3939
for crd in ${output}; do
4040
result+=("${crd}")
4141
done
@@ -182,7 +182,8 @@ function main() {
182182
inspect "$r"
183183
done
184184

185-
# inspect all istio.io CRDs
185+
# inspect all istio, sail operator, kiali and gateway API CRDs
186+
# this will also collect instances of those CRDs
186187
crds="$(getCRDs)"
187188
for crd in ${crds}; do
188189
inspect "crd/${crd}"

0 commit comments

Comments
 (0)