feat(backup): multi-host CNPG Option A CLI for activity-core
Add cnpg-option-a-backup JSON runner, vendored static age, kubectl install helper, and ESO policy path for offsite lane so railiance01 workers can upload without workstation OIDC (RAILIANCE-WP-0016).
This commit is contained in:
parent
b11855f64c
commit
16a93b8e5c
7 changed files with 352 additions and 1 deletions
|
|
@ -27,9 +27,19 @@ railiance_backup_require_openbao_lane() {
|
|||
}
|
||||
|
||||
railiance_backup_require_tools() {
|
||||
# Prefer vendored static binaries (activity-core hostPath / offline runners).
|
||||
local root vendor
|
||||
root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
vendor="${root}/tools/vendor/bin"
|
||||
if [[ -d "$vendor" ]]; then
|
||||
export PATH="${vendor}:${PATH}"
|
||||
fi
|
||||
if [[ -n "${RAILIANCE_BACKUP_AGE_BIN:-}" && -x "${RAILIANCE_BACKUP_AGE_BIN}" ]]; then
|
||||
export PATH="$(dirname "${RAILIANCE_BACKUP_AGE_BIN}"):${PATH}"
|
||||
fi
|
||||
local t
|
||||
for t in age curl kubectl; do
|
||||
command -v "$t" >/dev/null 2>&1 || { echo "ERROR: missing required tool: $t" >&2; exit 1; }
|
||||
command -v "$t" >/dev/null 2>&1 || { echo "ERROR: missing required tool: $t (run tools/cmd/install-cnpg-backup-vendor-tools)" >&2; exit 1; }
|
||||
done
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue