Skip to content

Commit 04e46fd

Browse files
authored
Merge pull request #79374 from RichardHoch/restore_cr_script
Replace script in 'Creating a Restore CR'
2 parents 1fd4ebb + 96e6cca commit 04e46fd

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

modules/oadp-creating-restore-cr.adoc

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,21 +93,18 @@ label_name () {
9393
echo "${1:0:57}${sha:0:6}"
9494
}
9595
96-
OADP_NAMESPACE=${OADP_NAMESPACE:=openshift-adp}
97-
9896
if [[ $# -ne 1 ]]; then
9997
echo "usage: ${BASH_SOURCE} restore-name"
10098
exit 1
10199
fi
102100
103-
echo using OADP Namespace $OADP_NAMESPACE
104-
echo restore: $1
101+
echo "restore: $1"
105102
106103
label=$(label_name $1)
107-
echo label: $label
104+
echo "label: $label"
108105
109106
echo Deleting disconnected restore pods
110-
oc delete pods -l oadp.openshift.io/disconnected-from-dc=$label
107+
oc delete pods --all-namespaces -l oadp.openshift.io/disconnected-from-dc=$label
111108
112109
for dc in $(oc get dc --all-namespaces -l oadp.openshift.io/replicas-modified=$label -o jsonpath='{range .items[*]}{.metadata.namespace}{","}{.metadata.name}{","}{.metadata.annotations.oadp\.openshift\.io/original-replicas}{","}{.metadata.annotations.oadp\.openshift\.io/original-paused}{"\n"}')
113110
do
@@ -122,5 +119,4 @@ EOF
122119
fi
123120
done
124121
----
125-
126122
====

0 commit comments

Comments
 (0)