Skip to content

Commit 09dda98

Browse files
OWLS-73008
1 parent 46aef94 commit 09dda98

File tree

1 file changed

+1
-2
lines changed
  • docs-source/content/userguide/managing-operators/using-the-operator

1 file changed

+1
-2
lines changed

docs-source/content/userguide/managing-operators/using-the-operator/the-rest-api.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ REST_ADDR="https://${KUBERNETES_SERVER}:${REST_PORT}"
7070
SECRET=`kubectl get serviceaccount weblogic-operator -n weblogic-operator -o jsonpath='{.secrets[0].name}'`
7171
ENCODED_TOKEN=`kubectl get secret ${SECRET} -n weblogic-operator -o jsonpath='{.data.token}'`
7272
TOKEN=`echo ${ENCODED_TOKEN} | base64 --decode`
73-
OPERATOR_CERT_SECRET=`grep externalRestIdentitySecret weblogic-operator.yaml | awk '{ print $2 }'`
74-
OPERATOR_CERT_DATA=`kubectl get secret ${OPERATOR_CERT_SECRET} -n weblogic-operator -o jsonpath='{.data.tls\.crt}'`
73+
OPERATOR_CERT_DATA=`kubectl get secret -n weblogic-operator weblogic-operator-external-rest-identity -o jsonpath='{.data.tls\.crt}'`
7574
OPERATOR_CERT_FILE="/tmp/operator.cert.pem"
7675
echo ${OPERATOR_CERT_DATA} | base64 --decode > ${OPERATOR_CERT_FILE}
7776
cat ${OPERATOR_CERT_FILE}

0 commit comments

Comments
 (0)