added path for velero binary

This commit is contained in:
Rasmus Thorslund 2025-05-27 15:56:22 +02:00
parent aab041b3ba
commit 9be1895e48
No known key found for this signature in database
GPG key ID: 502D33332E9E305D

View file

@ -29,7 +29,7 @@ command -v jq >/dev/null 2>&1 || {
#--- Fetch JSON from velero -------------------------------------------------
# wrap in timeout so we don't hang forever
if ! VELERO_JSON=$(timeout 30s velero backup get -o json 2>&1); then
if ! VELERO_JSON=$(timeout 30s /usr/local/bin/velero backup get -o json 2>&1); then
echo "UNKNOWN: velero CLI error: ${VELERO_JSON}"
exit $STATE_UNKNOWN
fi