You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need to gather data regarding new NUMA resources operator but currently
must-gather does not collect this data.
Different approachs were discussed but in the end we have decided to
collect NRO data here to avoid creating new must-gather images.
Copy file name to clipboardExpand all lines: must-gather/collection-scripts/namespace
+17-1Lines changed: 17 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
#!/usr/bin/env bash
2
2
3
-
functionnamespace() {
3
+
functionpao_namespace() {
4
4
# we control the subs, so this is the most reliable way to get the namespace
5
5
ns=$( oc get subs -A --field-selector metadata.name='performance-addon-operator-subscription' -o=jsonpath='{.items[0].metadata.namespace}{"\n"}'2> /dev/null )
6
6
# trying again with the pods, which are _usually_ reliable - but users can change them
@@ -11,3 +11,19 @@ function namespace() {
11
11
[ -z"${ns}" ] && ns="openshift-operators"
12
12
echo${ns}
13
13
}
14
+
15
+
functionnro_namespace() {
16
+
# we control the subs, so this is the most reliable way to get the namespace
17
+
ns=$( oc get subs -A --field-selector metadata.name='numaresources-operator-subscription' -o=jsonpath='{.items[0].metadata.namespace}{"\n"}'2> /dev/null )
18
+
19
+
# trying again with the pods, which are _usually_ reliable - but users can change them
20
+
[ -z"${ns}" ] && ns=$( oc get pods -A -l name='resource-topology' -o=jsonpath='{.items[0].metadata.namespace}{"\n"}'2> /dev/null )
21
+
22
+
# namespace suggested by the documentation. This is a fancier way to check for its existence
0 commit comments