Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
check AW status instead of jobs
  • Loading branch information
asm582 committed Oct 10, 2023
commit 2fc46ba8cb866b4ca997562af12e17016f650db8
4 changes: 2 additions & 2 deletions test/perf-test/perf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ check_kubectl_login_status
# Track whether you have the MCAD controller installed
echo "Checking MCAD Controller installation status"
echo
check_mcad_installed_status
#check_mcad_installed_status

echo
read -p "How many appwrapper jobs do you want?" jobs
Expand Down Expand Up @@ -114,7 +114,7 @@ done
esac

# Check for all jobs to report complete
jobstatus=`kubectl get jobs -n default --no-headers --field-selector status.successful=1 |wc -l`
jobstatus=`kubectl get appwrappers -n default --no-headers --field-selector status.successful=1 |wc -l`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shoot - this change isn't working right - getting the error message:

Error from server (BadRequest): Unable to find "workload.codeflare.dev/v1beta1, Resource=appwrappers" that match label selector "", field selector "status.successful=1": field label not supported: status.successful 

But since the jobstatus later in the while loop uses jobs the perf.sh script still completes.


while [ $jobstatus -lt $jobs ]
do
Expand Down