tenantsync v1.0.0 live fix (client json is {data:[...]}-wrapped) + hub image bump 0.44.0
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PSK5g6qYLknKj8u3QAFEr6
This commit is contained in:
+1
-1
@@ -126,7 +126,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: hub
|
||||
image: gitea.dooplex.hu/admin/felhom-hub:0.43.1
|
||||
image: gitea.dooplex.hu/admin/felhom-hub:0.44.0
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
name: http
|
||||
|
||||
@@ -97,8 +97,10 @@ if ! proxmox-backup-manager user list --output-format json | jq -e --arg u "$PBS
|
||||
proxmox-backup-manager user create "$PBS_USER" --comment 'offsite tenancy' >&2
|
||||
log "created user $PBS_USER"
|
||||
fi
|
||||
# NOTE: the CLIENT wraps json output as {"data":[...]} (live-proven on ep0); the MANAGER commands
|
||||
# return bare arrays. `(.data // .)` handles both.
|
||||
if ! PBS_PASSWORD="$ADM" proxmox-backup-client namespace list --repository "$ADMIN_REPO" \
|
||||
--output-format json | jq -e --arg ns "$CID" 'any(.[]; .ns == $ns)' >/dev/null; then
|
||||
--output-format json | jq -e --arg ns "$CID" '(.data // .) | any(.[]; .ns == $ns)' >/dev/null; then
|
||||
PBS_PASSWORD="$ADM" proxmox-backup-client namespace create "$CID" --repository "$ADMIN_REPO" >&2
|
||||
log "created namespace $CID"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user