File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ function check_kubectl_login_status() {
29
29
else
30
30
echo
31
31
echo " Nice, looks like you're logged in"
32
- fi
32
+ fi
33
33
}
34
34
35
35
function check_mcad_installed_status() {
64
64
shift $(( OPTIND- 1 ))
65
65
66
66
# 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..."
68
68
check_kubectl_login_status
69
69
70
70
# Track whether you have the MCAD controller installed
100
100
* )
101
101
sed -i " s/defaultaw-schd-spec-with-timeout-$num /defaultaw-schd-spec-with-timeout-$next_num /g" ${SCRIPT_DIR} /preempt-exp.yaml ;;
102
102
esac
103
- oc apply -f ${SCRIPT_DIR} /preempt-exp.yaml
103
+ kubectl apply -f ${SCRIPT_DIR} /preempt-exp.yaml
104
104
done
105
105
106
106
# Let's reset the original preempt-exp.yaml file back to original value
@@ -114,13 +114,13 @@ done
114
114
esac
115
115
116
116
# 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`
118
118
119
119
while [ $jobstatus -lt $jobs ]
120
120
do
121
121
echo " Number of completed jobs is: " $jobstatus " and the goal is: " $jobs
122
122
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`
124
124
done
125
125
126
126
echo " "
You can’t perform that action at this time.
0 commit comments