Skip to content

Commit

Permalink
Merge pull request #1 from KevFan/ignore-codeready-jwtproxy-pods
Browse files Browse the repository at this point in the history
Ignore jwtproxy pods in codeready pv backup
  • Loading branch information
matskiv committed Jan 6, 2020
2 parents a54eeb7 + 403ee2e commit 9ee9173
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 9ee9173

Please sign in to comment.