You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo @@ $allcountobjects remaining after $((mnow - mstart)) seconds, including $podcount WebLogic Server pods. Max wait is $maxwaitsecs seconds.
143
+
echo @@ $allcountresources remaining after $((mnow - mstart)) seconds, including $podcount WebLogic Server pods. Max wait is $maxwaitsecs seconds.
151
144
152
-
# Exit if all k8s objects deleted are max wait seconds exceeded.
145
+
# Exit if all k8s resources deleted or max wait seconds exceeded.
153
146
154
147
if [ $allcount-eq 0 ];then
155
148
echo @@ Success.
156
149
rm -f $tempfile
157
150
exit 0
158
151
elif [ $((mnow - mstart))-gt$maxwaitsecs ];then
159
-
echo @@ Error! Max wait of $maxwaitsecs seconds exceeded with $allcountobjects remaining, including $podcount WebLogic Server pods. Giving up. Remaining objects:
152
+
echo @@ Error! Max wait of $maxwaitsecs seconds exceeded with $allcountresources remaining, including $podcount WebLogic Server pods. Giving up. Remaining resources:
160
153
cat $tempfile
161
154
rm -f $tempfile
162
155
exit$allcount
@@ -184,9 +177,9 @@ function deleteDomains {
184
177
185
178
if [ $phase-eq 2 ];then
186
179
if [ $podcount-eq 0 ];then
187
-
echo @@ All pods shutdown, about to directly delete remaining artifacts.
180
+
echo @@ All pods shutdown, about to directly delete remaining resources.
echo @@ Warning!$podcount WebLogic Server pods remaining but waittime exceeds half of max wait seconds. About to directly delete all remaining artifacts, including the leftover pods.
182
+
echo @@ Warning!$podcount WebLogic Server pods remaining but waittime exceeds half of max wait seconds. About to directly delete all remaining resources, including the leftover pods.
190
183
else
191
184
echo @@ "Waiting for operator to shutdown pods (will wait for no more than half of max wait seconds before directly deleting them)."
192
185
sleep 3
@@ -195,7 +188,7 @@ function deleteDomains {
195
188
fi
196
189
phase=3
197
190
198
-
# In phase 3, directly delete all k8s artifacts for the given domainUids
191
+
# In phase 3, directly delete all k8s resources for the given domainUids
199
192
# (including any leftover WLS pods from phases 1 & 2).
200
193
201
194
cat $tempfile|whileread line;do
@@ -209,6 +202,15 @@ function deleteDomains {
209
202
done
210
203
}
211
204
205
+
# main entry point
206
+
207
+
# default when to stop retrying (override via command line)
208
+
default_maxwaitsecs=120
209
+
210
+
# optional test mode that lists what would be deleted without
0 commit comments