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