fix: set a fixed version of Barman to 3.12.1 (#159)

The latest released version of Barman 3.13.0 introduced a change
in the argment list for the restore.

For more information check the following issue:
https://github.com/cloudnative-pg/cloudnative-pg/issues/6932

Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com>
This commit is contained in:
Jonathan Gonzalez V.
2025-02-25 13:37:57 +01:00
committed by GitHub
parent 327d07bba7
commit 28a0e18487

View File

@@ -32,7 +32,8 @@ fetch_postgres_image_version() {
# Get the latest Barman version # Get the latest Barman version
latest_barman_version= latest_barman_version=
_raw_get_latest_barman_version() { _raw_get_latest_barman_version() {
curl -s https://pypi.org/pypi/barman/json | jq -r '.releases | keys[]' | sort -Vr | head -n1 # curl -s https://pypi.org/pypi/barman/json | jq -r '.releases | keys[]' | sort -Vr | head -n1
echo "3.12.1"
} }
get_latest_barman_version() { get_latest_barman_version() {
if [ -z "$latest_barman_version" ]; then if [ -z "$latest_barman_version" ]; then