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 <francesco.canovai@enterprisedb.com>
This commit is contained in:
Francesco Canovai 2025-02-03 11:29:17 +01:00 committed by Marco Nenciarini
parent fddc252241
commit f61dd33c4e
2 changed files with 4 additions and 0 deletions

View File

@ -285,6 +285,7 @@ func newSrcClusterWithPlugin(namespace string) *cloudnativepgv1.Cluster {
Spec: cloudnativepgv1.ClusterSpec{ Spec: cloudnativepgv1.ClusterSpec{
Instances: 2, Instances: 2,
ImagePullPolicy: corev1.PullAlways, ImagePullPolicy: corev1.PullAlways,
ImageName: "ghcr.io/cloudnative-pg/postgresql:17-minimal-bookworm",
Plugins: []cloudnativepgv1.PluginConfiguration{ Plugins: []cloudnativepgv1.PluginConfiguration{
{ {
Name: "barman-cloud.cloudnative-pg.io", Name: "barman-cloud.cloudnative-pg.io",
@ -320,6 +321,7 @@ func newDstClusterWithPlugin(namespace string) *cloudnativepgv1.Cluster {
Spec: cloudnativepgv1.ClusterSpec{ Spec: cloudnativepgv1.ClusterSpec{
Instances: 2, Instances: 2,
ImagePullPolicy: corev1.PullAlways, ImagePullPolicy: corev1.PullAlways,
ImageName: "ghcr.io/cloudnative-pg/postgresql:17-minimal-bookworm",
Bootstrap: &cloudnativepgv1.BootstrapConfiguration{ Bootstrap: &cloudnativepgv1.BootstrapConfiguration{
Recovery: &cloudnativepgv1.BootstrapRecovery{ Recovery: &cloudnativepgv1.BootstrapRecovery{
Source: "source", Source: "source",

View File

@ -112,6 +112,7 @@ func newSrcCluster(namespace string) *cloudnativepgv1.Cluster {
Spec: cloudnativepgv1.ClusterSpec{ Spec: cloudnativepgv1.ClusterSpec{
Instances: 2, Instances: 2,
ImagePullPolicy: corev1.PullAlways, ImagePullPolicy: corev1.PullAlways,
ImageName: "ghcr.io/cloudnative-pg/postgresql:17-minimal-bookworm",
Plugins: []cloudnativepgv1.PluginConfiguration{ Plugins: []cloudnativepgv1.PluginConfiguration{
{ {
Name: "barman-cloud.cloudnative-pg.io", Name: "barman-cloud.cloudnative-pg.io",
@ -218,6 +219,7 @@ func newReplicaCluster(namespace string) *cloudnativepgv1.Cluster {
Spec: cloudnativepgv1.ClusterSpec{ Spec: cloudnativepgv1.ClusterSpec{
Instances: 2, Instances: 2,
ImagePullPolicy: corev1.PullAlways, ImagePullPolicy: corev1.PullAlways,
ImageName: "ghcr.io/cloudnative-pg/postgresql:17-minimal-bookworm",
Bootstrap: &cloudnativepgv1.BootstrapConfiguration{ Bootstrap: &cloudnativepgv1.BootstrapConfiguration{
Recovery: &cloudnativepgv1.BootstrapRecovery{ Recovery: &cloudnativepgv1.BootstrapRecovery{
Source: "source", Source: "source",