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 <francesco.canovai@enterprisedb.com>
This commit is contained in:
Francesco Canovai 2025-02-26 10:59:20 +01:00 committed by GitHub
parent 12776640f8
commit 78300f093d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -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",

View File

@ -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",