Skip to content
This repository was archived by the owner on Sep 9, 2026. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion scripts/prepare-fulfillment-service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ create_hub() {
echo "Fulfillment internal API URL: ${fulfillment_url}"

echo "Logging into fulfillment internal API..."
retry_command 300 10 osac login --insecure --private --token-script "oc create token -n ${INSTALLER_NAMESPACE} admin" --address "${fulfillment_url}"
# OC_IMPERSONATE wraps the oc bash function but osac spawns oc as a
# child process, so we pass --as directly in the token-script.
local _impersonate_flag=""
[[ -n "${OC_IMPERSONATE:-}" ]] && _impersonate_flag="--as $(printf '%q' "${OC_IMPERSONATE}")"
retry_command 300 10 osac login --insecure --private --token-script "oc create token -n ${INSTALLER_NAMESPACE} admin ${_impersonate_flag}" --address "${fulfillment_url}"
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved

echo "Deleting existing hub..."
retry_command 300 10 osac delete hub hub
Expand Down
Loading