Skip to content

Commit 78300f0

Browse files
authored
test: use minimal image for testing (#154)
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 <[email protected]>
1 parent 1277664 commit 78300f0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

test/e2e/internal/tests/backup/fixtures.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ func newSrcClusterWithPlugin(namespace string) *cloudnativepgv1.Cluster {
285285
Spec: cloudnativepgv1.ClusterSpec{
286286
Instances: 2,
287287
ImagePullPolicy: corev1.PullAlways,
288+
ImageName: "ghcr.io/cloudnative-pg/postgresql:17-minimal-bookworm",
288289
Plugins: []cloudnativepgv1.PluginConfiguration{
289290
{
290291
Name: "barman-cloud.cloudnative-pg.io",
@@ -320,6 +321,7 @@ func newDstClusterWithPlugin(namespace string) *cloudnativepgv1.Cluster {
320321
Spec: cloudnativepgv1.ClusterSpec{
321322
Instances: 2,
322323
ImagePullPolicy: corev1.PullAlways,
324+
ImageName: "ghcr.io/cloudnative-pg/postgresql:17-minimal-bookworm",
323325
Bootstrap: &cloudnativepgv1.BootstrapConfiguration{
324326
Recovery: &cloudnativepgv1.BootstrapRecovery{
325327
Source: "source",

test/e2e/internal/tests/replicacluster/fixtures.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ func newSrcCluster(namespace string) *cloudnativepgv1.Cluster {
112112
Spec: cloudnativepgv1.ClusterSpec{
113113
Instances: 2,
114114
ImagePullPolicy: corev1.PullAlways,
115+
ImageName: "ghcr.io/cloudnative-pg/postgresql:17-minimal-bookworm",
115116
Plugins: []cloudnativepgv1.PluginConfiguration{
116117
{
117118
Name: "barman-cloud.cloudnative-pg.io",
@@ -218,6 +219,7 @@ func newReplicaCluster(namespace string) *cloudnativepgv1.Cluster {
218219
Spec: cloudnativepgv1.ClusterSpec{
219220
Instances: 2,
220221
ImagePullPolicy: corev1.PullAlways,
222+
ImageName: "ghcr.io/cloudnative-pg/postgresql:17-minimal-bookworm",
221223
Bootstrap: &cloudnativepgv1.BootstrapConfiguration{
222224
Recovery: &cloudnativepgv1.BootstrapRecovery{
223225
Source: "source",

0 commit comments

Comments
 (0)