Skip to content

Commit 25ff78f

Browse files
committed
fix(gather_gitops.sh): Fix receiving gitopsservices.pipelines.openshift.io
Signed-off-by: Oliver Gondža <ogondza@gmail.com>
1 parent d617636 commit 25ff78f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gather_gitops.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LOGS_DIR="/must-gather"
99
mkdir -p ${LOGS_DIR}
1010

1111
GITOPS_CURRENT_CSV=$(oc get subscription.operators.coreos.com --ignore-not-found -A -o json | jq '.items[] | select(.metadata.name=="openshift-gitops-operator") | .status.currentCSV' -r)
12-
readarray -t NON_ARGO_CRD_NAMES < <(oc get csv --ignore-not-found "$GITOPS_CURRENT_CSV" -o json | jq '.spec.customresourcedefinitions.owned[] | select(.name | contains("argoproj.io") | not) | " " + .name' -rj)
12+
readarray -t NON_ARGO_CRD_NAMES < <(oc get csv --ignore-not-found "$GITOPS_CURRENT_CSV" -o json | jq '.spec.customresourcedefinitions.owned[] | select(.name | contains("argoproj.io") | not) | .name' -rj)
1313

1414
# Gathering cluster version all the crd related to operators.coreos.com and argoproj.io
1515
echo "gather_gitops:$LINENO] inspecting crd, clusterversion .." | tee -a ${LOGS_DIR}/gather_gitops.log

0 commit comments

Comments
 (0)