mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-01-11 21:23:12 +01:00
fix: use correct variables for replica source
Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
This commit is contained in:
parent
127f94adaf
commit
898bd4eaba
@ -79,7 +79,7 @@ func (config *PluginConfiguration) GetRecoveryBarmanObjectKey() types.Namespaced
|
||||
func (config *PluginConfiguration) GetReplicaSourceBarmanObjectKey() types.NamespacedName {
|
||||
return types.NamespacedName{
|
||||
Namespace: config.Cluster.Namespace,
|
||||
Name: config.ReplicaSourceServerName,
|
||||
Name: config.ReplicaSourceBarmanObjectName,
|
||||
}
|
||||
}
|
||||
|
||||
@ -151,7 +151,7 @@ func NewFromCluster(cluster *cnpgv1.Cluster) *PluginConfiguration {
|
||||
if replicaSourceParameters := getReplicaSourceParameters(cluster); replicaSourceParameters != nil {
|
||||
replicaSourceBarmanObjectName = replicaSourceParameters["barmanObjectName"]
|
||||
replicaSourceServerName = replicaSourceParameters["serverName"]
|
||||
if len(recoveryServerName) == 0 {
|
||||
if len(replicaSourceServerName) == 0 {
|
||||
replicaSourceServerName = cluster.Name
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user