Skip to content

Commit 3ee4569

Browse files
committed
Fix integration tests
1 parent 1e69a91 commit 3ee4569

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

kubernetes/samples/scripts/rest/generate-external-rest-identity.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,16 @@ openssl \
130130
2> /dev/null
131131

132132
# Create the secret with the self-signed certificate and private key in the weblogic-operator namespace
133-
kubectl create secret tls "weblogic-operator-certificate" --cert=${OP_CERT_PEM} --key=${OP_KEY_PEM} -n weblogic-operator
134-
echo "externalCertificateSecret: weblogic-operator-certificate"
133+
# kubectl create secret tls "weblogic-operator-certificate" --cert=${OP_CERT_PEM} --key=${OP_KEY_PEM} -n weblogic-operator
134+
# echo "externalCertificateSecret: weblogic-operator-certificate"
135+
136+
# base64 encode the cert and private key pem
137+
CERT_DATA=`base64 -i ${OP_CERT_PEM} | tr -d '\n'`
138+
KEY_DATA=`base64 -i ${OP_KEY_PEM} | tr -d '\n'`
139+
140+
# print out the cert and pem in the form that can be added to
141+
# the operator helm chart's values.yaml
142+
echo "externalOperatorCert: ${CERT_DATA}"
143+
echo "externalOperatorKey: ${KEY_DATA}"
144+
135145
SUCCEEDED=true

0 commit comments

Comments
 (0)