Skip to content

Commit f3315a1

Browse files
committed
baremetal-coco: Set https / no_proxy for the agent
This is needed as that's the only way for the agent running inside the guest to know about proxies. Signed-off-by: Fabiano Fidêncio <[email protected]>
1 parent 2db844a commit f3315a1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/install-helpers/baremetal-coco/install.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ KERNEL_CONFIG_MC_FILE="./96-kata-kernel-config-mc.yaml"
88
SKIP_NFD="${SKIP_NFD:-false}"
99
TRUSTEE_URL="${TRUSTEE_URL:-"http://kbs-service.trustee-operator-system:8080"}"
1010
CMD_TIMEOUT="${CMD_TIMEOUT:-900}"
11+
HTTPS_PROXY="${HTTPS_PROXY:-${https_proxy:-}}"
12+
NO_PROXY="${NO_PROXY:-${no_proxy:-}}"
1113

1214
export PCCS_API_KEY="${PCCS_API_KEY:-}"
1315
export PCCS_DB_NAME="${PCCS_DB_NAME:-database}"
@@ -368,6 +370,11 @@ function set_aa_kbc_params_for_kata_agent() {
368370
kata_override="[hypervisor.qemu]
369371
kernel_params= \"agent.aa_kbc_params=cc_kbc::$trustee_url\""
370372

373+
if [ -n "${HTTPS_PROXY}" ]; then
374+
kata_override="[hypervisor.qemu]
375+
kernel_params=\"agent.aa_kbc_params=cc_kbc::$trustee_url agent.https_proxy=$HTTPS_PROXY agent.no_proxy=$NO_PROXY\""
376+
fi
377+
371378
# Create base64 encoding of the drop-in to be used as source
372379
source=$(echo "$kata_override" | base64 -w0) || return 1
373380

0 commit comments

Comments
 (0)