@@ -1311,14 +1311,14 @@ function call_operator_rest {
13111311
13121312 trace " Checking REST service is running"
13131313 set +x
1314- local REST_SERVICE=" ` kubectl get services -n $OPERATOR_NS -o jsonpath=' {.items[?(@.metadata.name == "external-weblogic-operator-service ")]}' ` "
1314+ local REST_SERVICE=" ` kubectl get services -n $OPERATOR_NS -o jsonpath=' {.items[?(@.metadata.name == "external-weblogic-operator-svc ")]}' ` "
13151315 set -x
13161316 if [ -z " $REST_SERVICE " ]; then
13171317 fail ' operator rest service was not created'
13181318 fi
13191319
13201320 set +x
1321- local REST_PORT=" ` kubectl get services -n $OPERATOR_NS -o jsonpath=' {.items[?(@.metadata.name == "external-weblogic-operator-service ")].spec.ports[?(@.name == "rest-https")].nodePort}' ` "
1321+ local REST_PORT=" ` kubectl get services -n $OPERATOR_NS -o jsonpath=' {.items[?(@.metadata.name == "external-weblogic-operator-svc ")].spec.ports[?(@.name == "rest-https")].nodePort}' ` "
13221322 set -x
13231323 local REST_ADDR=" https://${NODEPORT_HOST} :${REST_PORT} "
13241324 local SECRET=" ` kubectl get serviceaccount weblogic-operator -n $OPERATOR_NS -o jsonpath=' {.secrets[0].name}' ` "
@@ -2178,7 +2178,7 @@ function shutdown_operator {
21782178 kubectl delete -f $TMP_DIR /weblogic-operator.yaml
21792179 trace " Checking REST service is deleted"
21802180 set +x
2181- local servicenum=` kubectl get services -n $OPERATOR_NS | egrep weblogic-operator-service | wc -l`
2181+ local servicenum=` kubectl get services -n $OPERATOR_NS | egrep weblogic-operator-svc | wc -l`
21822182 set -x
21832183 trace " servicenum=$servicenum "
21842184 if [ " $servicenum " != " 0" ]; then
@@ -2233,7 +2233,7 @@ function startup_operator {
22332233
22342234 trace " Checking REST service is running"
22352235 set +x
2236- local REST_SERVICE=` kubectl get services -n ${namespace} -o jsonpath=' {.items[?(@.metadata.name == "external-weblogic-operator-service ")]}' `
2236+ local REST_SERVICE=` kubectl get services -n ${namespace} -o jsonpath=' {.items[?(@.metadata.name == "external-weblogic-operator-svc ")]}' `
22372237 set -x
22382238 if [ -z " $REST_SERVICE " ]; then
22392239 fail ' operator rest service was not created'
0 commit comments