Skip to content

Commit cdbce86

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

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,7 @@ You will get a dump of:
3030
- All Kiali CRD objects (Kiali, ossmconsole)
3131
- All gateway.networking.k8s.io group CRD definitions
3232
- All gateway.networking.k8s.io group instances
33+
- All inference.networking.x-k8s.io group CRD definitions
34+
- All inference.networking.x-k8s.io group instances
3335

3436
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: 3 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 Istio, sail operator, kiali and gateway.networking.k8s.io group CRDs
34+
# Get Istio, sail operator, kiali, gateway.networking.k8s.io and inference.networking.x-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' -e '\.gateway\.networking\.k8s\.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' -e 'inference\.networking\.x-k8s\.io')
3939
for crd in ${output}; do
4040
result+=("${crd}")
4141
done
@@ -182,7 +182,7 @@ function main() {
182182
inspect "$r"
183183
done
184184

185-
# inspect all istio, sail operator, kiali and gateway API CRDs
185+
# inspect all istio, sail operator, kiali and gateway API+ CRDs
186186
# this will also collect instances of those CRDs
187187
crds="$(getCRDs)"
188188
for crd in ${crds}; do

0 commit comments

Comments
 (0)