Skip to content

Commit

Permalink
update gather_gitops.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Meghnagi <[email protected]>
  • Loading branch information
gmeghnag committed May 21, 2024
1 parent 32babe4 commit 1e7b87b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gather_gitops.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ LOGS_DIR="/must-gather"
mkdir -p ${LOGS_DIR}


# Getting non.existent.sub is a hack to be sure that the output is a list of items even if it only contains a single item
GITOPS_CURRENT_CSV=$(oc get sub non.existent.sun --ignore-not-found -A -o json | jq '.items[] | select(.metadata.name=="openshift-gitops-operator") | .status.currentCSV' -r)
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)

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

0 comments on commit 1e7b87b

Please sign in to comment.