Skip to content

Commit fb9edad

Browse files
Merge pull request #1919 from ciecierski/cleanup-message
Inform developer how to restore OLM CSV after cleanup with local webhook
2 parents 7eb2d59 + 5b092de commit fb9edad

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

hack/run_with_local_webhook.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ set -ex
55
cleanup() {
66
echo "Caught signal, cleaning up local webhooks..."
77
./hack/clean_local_webhook.sh
8+
# Remind the user how to restore the CSV since the earlier message
9+
# may have scrolled off the terminal.
10+
if [ -n "${CSV_FILE}" ]; then
11+
printf \
12+
"\n\tThe original OLM version of the operator's CSV has been copied to %s. To restore it, use:
13+
oc patch -n openstack-operators %s --type=merge --patch-file=%s\n\n" "${CSV_FILE}" "${CSV_NAME}" "${CSV_FILE}"
14+
fi
815
exit 0
916
}
1017

0 commit comments

Comments
 (0)