Skip to content

Commit a1a4dbd

Browse files
committed
remove oc and formatting
Signed-off-by: James Busche <jbusche@us.ibm.com>
1 parent 29e1903 commit a1a4dbd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/perf-test/perf.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function check_kubectl_login_status() {
2929
else
3030
echo
3131
echo "Nice, looks like you're logged in"
32-
fi
32+
fi
3333
}
3434

3535
function check_mcad_installed_status() {
@@ -64,7 +64,7 @@ done
6464
shift $((OPTIND-1))
6565

6666
# Track whether we have a valid kubectl login
67-
echo "Checking whether we have a valid oc login or not..."
67+
echo "Checking whether we have a valid cluster login or not..."
6868
check_kubectl_login_status
6969

7070
# Track whether you have the MCAD controller installed
@@ -100,7 +100,7 @@ do
100100
*)
101101
sed -i "s/defaultaw-schd-spec-with-timeout-$num/defaultaw-schd-spec-with-timeout-$next_num/g" ${SCRIPT_DIR}/preempt-exp.yaml ;;
102102
esac
103-
oc apply -f ${SCRIPT_DIR}/preempt-exp.yaml
103+
kubectl apply -f ${SCRIPT_DIR}/preempt-exp.yaml
104104
done
105105

106106
# Let's reset the original preempt-exp.yaml file back to original value
@@ -114,13 +114,13 @@ done
114114
esac
115115

116116
# Check for all jobs to report complete
117-
jobstatus=`oc get jobs --no-headers --field-selector status.successful=1 |wc -l`
117+
jobstatus=`kubectl get jobs --no-headers --field-selector status.successful=1 |wc -l`
118118

119119
while [ $jobstatus -lt $jobs ]
120120
do
121121
echo "Number of completed jobs is: " $jobstatus " and the goal is: " $jobs
122122
sleep 10
123-
jobstatus=`oc get jobs --no-headers --field-selector status.successful=1 |wc -l`
123+
jobstatus=`kubectl get jobs --no-headers --field-selector status.successful=1 |wc -l`
124124
done
125125

126126
echo " "

0 commit comments

Comments
 (0)