Skip to content

Commit

Permalink
NETOBSERV-1495: look for fc object specifically to get namespace (#8)
Browse files Browse the repository at this point in the history
Signed-off-by: Mohamed Mahmoud <mmahmoud@redhat.com>
  • Loading branch information
msherif1234 authored Feb 9, 2024
1 parent 8baab07 commit 1fc592c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collection-scripts/gather_resources
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if [ -z "${NO_NS}" ]; then
exit 0
fi

CRD=$(/usr/bin/oc get crd | grep netobserv.io | awk '{print $1}')
CRD="flowcollectors.flows.netobserv.io"
obj=$(/usr/bin/oc get "${CRD}" -o custom-columns=:metadata.name --no-headers)
fc_ns=$(/usr/bin/oc get "${CRD}" "${obj}" --output=jsonpath='{.spec.namespace}')

Expand Down

0 comments on commit 1fc592c

Please sign in to comment.