File tree 1 file changed +2
-2
lines changed
operator/integration-tests/bash
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- # Copyright (c) 2019, 2022 , Oracle and/or its affiliates.
2
+ # Copyright (c) 2019, 2023 , Oracle and/or its affiliates.
3
3
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
4
4
5
5
# This script show the model in image merged model of the running domain in clear text
@@ -101,6 +101,6 @@ ${KUBERNETES_CLI} -n ${DOMAIN_NAMESPACE} get configmap ${DOMAIN_UID}-weblogic-do
101
101
${KUBERNETES_CLI} cp encrypted_model.json ${DOMAIN_NAMESPACE} /decryptmodel:/tmp
102
102
${KUBERNETES_CLI} cp decrypt_model.sh ${DOMAIN_NAMESPACE} /decryptmodel:/tmp
103
103
${KUBERNETES_CLI} cp model-encryption-util.py ${DOMAIN_NAMESPACE} /decryptmodel:/tmp
104
- ${KUBERNETES_CLI} -n ${DOMAIN_NAMESPACE} exec decryptmodel -- bash -c " /tmp/decrypt_model.sh decrypt /tmp/encrypted_model.json ${PASSWORD} /tmp/decrypted_model.json && if [ '{' == ' $( head -c 1 /tmp/decrypted_model.json ) ' ] ; then cat /tmp/decrypted_model.json; else base64 -d /tmp/decrypted_model.json | gunzip ; fi "
104
+ ${KUBERNETES_CLI} -n ${DOMAIN_NAMESPACE} exec decryptmodel -- bash -c " /tmp/decrypt_model.sh decrypt /tmp/encrypted_model.json ${PASSWORD} /tmp/decrypted_model.json && base64 -d /tmp/decrypted_model.json | gunzip "
105
105
${KUBERNETES_CLI} -n ${DOMAIN_NAMESPACE} delete -f decrypt_model.yaml
106
106
You can’t perform that action at this time.
0 commit comments