File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
kubernetes/samples/scripts/rest Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,16 @@ openssl \
130
130
2> /dev/null
131
131
132
132
# 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
+
135
145
SUCCEEDED=true
You can’t perform that action at this time.
0 commit comments