make the volume scripts ignore ephemeral volumes

This commit is contained in:
goldsquid
2026-06-06 09:57:48 +07:00
parent d369f62c44
commit 91ef991773
10 changed files with 61 additions and 14 deletions

View File

@@ -14,6 +14,7 @@ fi
CONFIG_FILE="$1.yml"
GLOBS_FILE="${2:-node-key-globs.txt}"
SCRIPT_DIR="$(dirname "$0")"
source "$SCRIPT_DIR/volume-utils.sh"
# Try to find config file in multiple locations
if [[ -f "$SCRIPT_DIR/$CONFIG_FILE" ]]; then
@@ -42,7 +43,7 @@ fi
# Read volume keys from config file
echo "Reading volume configuration from $CONFIG_PATH..."
keys=$(cat "$CONFIG_PATH" | yaml2json - | jq '.volumes' | jq -r 'keys[]')
keys=$(get_persistent_volume_keys "$CONFIG_PATH")
if [[ -z "$keys" ]]; then
echo "Error: No volumes found in configuration"