Skip to content

Commit 07873a8

Browse files
committed
Update to simplify line
1 parent 6dfe780 commit 07873a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

operator/integration-tests/bash/show_merged_model.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Copyright (c) 2019, 2022, Oracle and/or its affiliates.
2+
# Copyright (c) 2019, 2023, Oracle and/or its affiliates.
33
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
44

55
# 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
101101
${KUBERNETES_CLI} cp encrypted_model.json ${DOMAIN_NAMESPACE}/decryptmodel:/tmp
102102
${KUBERNETES_CLI} cp decrypt_model.sh ${DOMAIN_NAMESPACE}/decryptmodel:/tmp
103103
${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 "
105105
${KUBERNETES_CLI} -n ${DOMAIN_NAMESPACE} delete -f decrypt_model.yaml
106106

0 commit comments

Comments
 (0)