@@ -142,7 +142,7 @@ func newSrcCluster(namespace string) *cloudnativepgv1.Cluster {
142142 Name : "barman-cloud.cloudnative-pg.io" ,
143143 Parameters : map [string ]string {
144144 "barmanObjectName" : srcObjectStoreName ,
145- "serverName" : srcClusterName ,
145+ "serverName" : srcClusterName + namespace ,
146146 },
147147 },
148148 },
@@ -152,7 +152,7 @@ func newSrcCluster(namespace string) *cloudnativepgv1.Cluster {
152152 Name : "barman-cloud.cloudnative-pg.io" ,
153153 Parameters : map [string ]string {
154154 "barmanObjectName" : replicaObjectStoreName ,
155- "serverName" : replicaObjectStoreName ,
155+ "serverName" : replicaObjectStoreName + namespace ,
156156 },
157157 },
158158 },
@@ -248,7 +248,7 @@ func newReplicaCluster(namespace string) *cloudnativepgv1.Cluster {
248248 Name : "barman-cloud.cloudnative-pg.io" ,
249249 Parameters : map [string ]string {
250250 "barmanObjectName" : srcObjectStoreName ,
251- "serverName" : srcClusterName ,
251+ "serverName" : srcClusterName + namespace ,
252252 },
253253 },
254254 },
@@ -258,7 +258,7 @@ func newReplicaCluster(namespace string) *cloudnativepgv1.Cluster {
258258 Name : "barman-cloud.cloudnative-pg.io" ,
259259 Parameters : map [string ]string {
260260 "barmanObjectName" : replicaObjectStoreName ,
261- "serverName" : replicaObjectStoreName ,
261+ "serverName" : replicaObjectStoreName + namespace ,
262262 },
263263 },
264264 },
0 commit comments