mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-01-11 21:23:12 +01:00
test(e2e): specify IsWALArchiver=true (#356)
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
This commit is contained in:
parent
5e1b845cae
commit
3faee89bce
@ -25,6 +25,7 @@ import (
|
||||
"github.com/cloudnative-pg/machinery/pkg/api"
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/utils/ptr"
|
||||
|
||||
pluginBarmanCloudV1 "github.com/cloudnative-pg/plugin-barman-cloud/api/v1"
|
||||
"github.com/cloudnative-pg/plugin-barman-cloud/test/e2e/internal/objectstore"
|
||||
@ -292,6 +293,7 @@ func newSrcClusterWithPlugin(namespace string) *cloudnativepgv1.Cluster {
|
||||
Parameters: map[string]string{
|
||||
"barmanObjectName": objectStoreName,
|
||||
},
|
||||
IsWALArchiver: ptr.To(true),
|
||||
},
|
||||
},
|
||||
PostgresConfiguration: cloudnativepgv1.PostgresConfiguration{
|
||||
@ -333,6 +335,7 @@ func newDstClusterWithPlugin(namespace string) *cloudnativepgv1.Cluster {
|
||||
Parameters: map[string]string{
|
||||
"barmanObjectName": objectStoreName,
|
||||
},
|
||||
IsWALArchiver: ptr.To(true),
|
||||
},
|
||||
},
|
||||
PostgresConfiguration: cloudnativepgv1.PostgresConfiguration{
|
||||
@ -439,6 +442,7 @@ func newDstClusterInTreeS3(namespace string) *cloudnativepgv1.Cluster {
|
||||
Parameters: map[string]string{
|
||||
"barmanObjectName": objectStoreName,
|
||||
},
|
||||
IsWALArchiver: ptr.To(true),
|
||||
},
|
||||
},
|
||||
ExternalClusters: []cloudnativepgv1.ExternalCluster{
|
||||
@ -536,6 +540,7 @@ func newDstClusterInTreeAzure(namespace string) *cloudnativepgv1.Cluster {
|
||||
Parameters: map[string]string{
|
||||
"barmanObjectName": objectStoreName,
|
||||
},
|
||||
IsWALArchiver: ptr.To(true),
|
||||
},
|
||||
},
|
||||
ExternalClusters: []cloudnativepgv1.ExternalCluster{
|
||||
@ -632,6 +637,7 @@ func newDstClusterInTreeGCS(namespace string) *cloudnativepgv1.Cluster {
|
||||
Parameters: map[string]string{
|
||||
"barmanObjectName": objectStoreName,
|
||||
},
|
||||
IsWALArchiver: ptr.To(true),
|
||||
},
|
||||
},
|
||||
Env: []corev1.EnvVar{
|
||||
|
||||
@ -4,6 +4,7 @@ import (
|
||||
cloudnativepgv1 "github.com/cloudnative-pg/api/pkg/api/v1"
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/utils/ptr"
|
||||
|
||||
pluginBarmanCloudV1 "github.com/cloudnative-pg/plugin-barman-cloud/api/v1"
|
||||
"github.com/cloudnative-pg/plugin-barman-cloud/test/e2e/internal/objectstore"
|
||||
@ -119,6 +120,7 @@ func newSrcCluster(namespace string) *cloudnativepgv1.Cluster {
|
||||
Parameters: map[string]string{
|
||||
"barmanObjectName": srcObjectStoreName,
|
||||
},
|
||||
IsWALArchiver: ptr.To(true),
|
||||
},
|
||||
},
|
||||
PostgresConfiguration: cloudnativepgv1.PostgresConfiguration{
|
||||
@ -231,6 +233,7 @@ func newReplicaCluster(namespace string) *cloudnativepgv1.Cluster {
|
||||
Parameters: map[string]string{
|
||||
"barmanObjectName": replicaObjectStoreName,
|
||||
},
|
||||
IsWALArchiver: ptr.To(true),
|
||||
},
|
||||
},
|
||||
PostgresConfiguration: cloudnativepgv1.PostgresConfiguration{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user