feat: enable daily CNPG Option A backup on railiance01
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s
Build and Publish Container Image / build-and-push (push) Successful in 1m9s

Wire worker kubeconfig hostPath (no PATH override), enable
daily-cnpg-option-a-backup for R01 targets, ESO already synced.
This commit is contained in:
tegwick 2026-07-22 20:34:22 +02:00
parent 041ff9b495
commit 9a4f6a4d75
3 changed files with 8 additions and 5 deletions

View file

@ -26,10 +26,10 @@ def cnpg_option_a_backup(params: dict[str, Any]) -> dict[str, Any]:
targets = params.get("targets") # optional CSV
env = os.environ.copy()
# Ensure vendor bin (age/kubectl) is visible when hostPath is mounted.
# Prepend vendor bin (age/kubectl) without wiping the image PATH/venv.
vendor = Path("/opt/railiance-platform/tools/vendor/bin")
if vendor.is_dir():
env["PATH"] = f"{vendor}:{env.get('PATH', '')}"
env["PATH"] = f"{vendor}:{env.get('PATH', '/usr/local/bin:/usr/bin:/bin')}"
if dry_run:
env["RAILIANCE_BACKUP_DRY_RUN"] = "1"