From f61dd33c4edb40d76c18864078f4aeeb05e46cbe Mon Sep 17 00:00:00 2001 From: Francesco Canovai Date: Mon, 3 Feb 2025 11:29:17 +0100 Subject: [PATCH] test: use minimal image for testing Use 17-minimal-bookworm images instead of default ones for all the tests, except the one where we need barman cloud to check compatibility. Signed-off-by: Francesco Canovai --- test/e2e/internal/tests/backup/fixtures.go | 2 ++ test/e2e/internal/tests/replicacluster/fixtures.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/test/e2e/internal/tests/backup/fixtures.go b/test/e2e/internal/tests/backup/fixtures.go index bb12cf5..d59fc5b 100644 --- a/test/e2e/internal/tests/backup/fixtures.go +++ b/test/e2e/internal/tests/backup/fixtures.go @@ -285,6 +285,7 @@ func newSrcClusterWithPlugin(namespace string) *cloudnativepgv1.Cluster { Spec: cloudnativepgv1.ClusterSpec{ Instances: 2, ImagePullPolicy: corev1.PullAlways, + ImageName: "ghcr.io/cloudnative-pg/postgresql:17-minimal-bookworm", Plugins: []cloudnativepgv1.PluginConfiguration{ { Name: "barman-cloud.cloudnative-pg.io", @@ -320,6 +321,7 @@ func newDstClusterWithPlugin(namespace string) *cloudnativepgv1.Cluster { Spec: cloudnativepgv1.ClusterSpec{ Instances: 2, ImagePullPolicy: corev1.PullAlways, + ImageName: "ghcr.io/cloudnative-pg/postgresql:17-minimal-bookworm", Bootstrap: &cloudnativepgv1.BootstrapConfiguration{ Recovery: &cloudnativepgv1.BootstrapRecovery{ Source: "source", diff --git a/test/e2e/internal/tests/replicacluster/fixtures.go b/test/e2e/internal/tests/replicacluster/fixtures.go index 79e386d..fe5e8ab 100644 --- a/test/e2e/internal/tests/replicacluster/fixtures.go +++ b/test/e2e/internal/tests/replicacluster/fixtures.go @@ -112,6 +112,7 @@ func newSrcCluster(namespace string) *cloudnativepgv1.Cluster { Spec: cloudnativepgv1.ClusterSpec{ Instances: 2, ImagePullPolicy: corev1.PullAlways, + ImageName: "ghcr.io/cloudnative-pg/postgresql:17-minimal-bookworm", Plugins: []cloudnativepgv1.PluginConfiguration{ { Name: "barman-cloud.cloudnative-pg.io", @@ -218,6 +219,7 @@ func newReplicaCluster(namespace string) *cloudnativepgv1.Cluster { Spec: cloudnativepgv1.ClusterSpec{ Instances: 2, ImagePullPolicy: corev1.PullAlways, + ImageName: "ghcr.io/cloudnative-pg/postgresql:17-minimal-bookworm", Bootstrap: &cloudnativepgv1.BootstrapConfiguration{ Recovery: &cloudnativepgv1.BootstrapRecovery{ Source: "source",