Skip to content

Commit d0ec829

Browse files
committed
Checkpoint k8s artifact renaming work
1 parent 420933c commit d0ec829

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kubernetes/internal/create-weblogic-domain.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -540,8 +540,8 @@ function createDomain {
540540
while [ "$JOB_STATUS" != "Completed" -a $count -lt $max ] ; do
541541
sleep 30
542542
count=`expr $count + 1`
543-
JOB_STATUS=`kubectl get pods --show-all -n ${namespace} | grep "domain-${domainUID}" | awk ' { print $3; } '`
544-
JOB_INFO=`kubectl get pods --show-all -n ${namespace} | grep "domain-${domainUID}" | awk ' { print "pod", $1, "status is", $3; } '`
543+
JOB_STATUS=`kubectl get pods --show-all -n ${namespace} | grep ${JOB_NAME} | awk ' { print $3; } '`
544+
JOB_INFO=`kubectl get pods --show-all -n ${namespace} | grep ${JOB_NAME} | awk ' { print "pod", $1, "status is", $3; } '`
545545
echo "status on iteration $count of $max"
546546
echo "$JOB_INFO"
547547

@@ -559,7 +559,7 @@ function createDomain {
559559
done
560560

561561
# Confirm the job pod is status completed
562-
JOB_POD=`kubectl get pods --show-all -n ${namespace} | grep "domain-${domainUID}" | awk ' { print $1; } '`
562+
JOB_POD=`kubectl get pods --show-all -n ${namespace} | grep ${JOB_NAME} | awk ' { print $1; } '`
563563
if [ "$JOB_STATUS" != "Completed" ]; then
564564
echo The create domain job is not showing status completed after waiting 300 seconds
565565
echo Check the log output for errors

0 commit comments

Comments
 (0)