diff --git a/internal/patroni/config.go b/internal/patroni/config.go index 64645ec2d..6e6a29d1b 100644 --- a/internal/patroni/config.go +++ b/internal/patroni/config.go @@ -580,7 +580,7 @@ func instanceYAML( postgresql[pgBackRestCreateReplicaMethod] = map[string]any{ "command": strings.Join(quoted, " "), "keep_data": true, - "no_master": true, + "no_leader": true, "no_params": true, } methods = append([]string{pgBackRestCreateReplicaMethod}, methods...) diff --git a/internal/patroni/config.md b/internal/patroni/config.md index 18d28d8a4..e061b3f77 100644 --- a/internal/patroni/config.md +++ b/internal/patroni/config.md @@ -214,7 +214,7 @@ acquiring the leader lock, the Patroni leader: | - | postgresql.basebackup | Yes | mutable | either | List of arguments to pass to pg_basebackup when using the `basebackup` replica method. | - | postgresql.{method}.command | Yes¹ | mutable | either | Command to execute for this replica method. | - | postgresql.{method}.keep_data | Yes¹ | mutable | either | Whether or not Patroni should empty the data directory before. (default: false) -| - | postgresql.{method}.no_master | Yes¹ | mutable | either | Whether or not Patroni can call this method when no instances are running. (default: false) +| - | postgresql.{method}.no_leader | Yes¹ | mutable | either | Whether or not Patroni can call this method when no instances are running. (default: false) | - | postgresql.{method}.no_params | Yes¹ | mutable | either | Whether or not Patroni should pass extra arguments to the command. (default: false) || |||||| https://github.com/zalando/patroni/blob/v2.0.1/docs/replica_bootstrap.rst#bootstrap diff --git a/internal/patroni/config_test.go b/internal/patroni/config_test.go index eb8b12918..f761e27f3 100644 --- a/internal/patroni/config_test.go +++ b/internal/patroni/config_test.go @@ -1038,7 +1038,7 @@ postgresql: command: '''bash'' ''-ceu'' ''--'' ''install --directory --mode=0700 "${PGDATA?}" && exec "$@"'' ''-'' ''some'' ''backrest'' ''cmd''' keep_data: true - no_master: true + no_leader: true no_params: true pgpass: /tmp/.pgpass use_unix_socket: true