Skip to content

Commit

Permalink
Ignore jwtproxy pods in codeready pv backup
Browse files Browse the repository at this point in the history
  • Loading branch information
KevFan committed Jan 3, 2020
1 parent a54eeb7 commit 403ee2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion image/tools/lib/component/codeready_pv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function component_dump_data {
if [[ -z "${PRODUCT_NAMESPACE:-}" ]]; then
PRODUCT_NAMESPACE="${PRODUCT_NAMESPACE_PREFIX}codeready"
fi
local pods="$(oc get pods -n ${PRODUCT_NAMESPACE} --no-headers=true -l "che.workspace_id" | awk '{print $1}')"
local pods="$(oc get pods -n ${PRODUCT_NAMESPACE} --no-headers=true -l "che.workspace_id,che.original_name notin (che-jwtproxy)" | awk '{print $1}')"
if [ "${#pods}" -eq "0" ]; then
echo "=>> No workspaces found to backup"
exit 0
Expand Down

0 comments on commit 403ee2e

Please sign in to comment.