Skip to content

Commit e814ecc

Browse files
committed
failing test in different way
1 parent 15a0d33 commit e814ecc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

internal/controller/postgrescluster/pgbouncer_test.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -512,10 +512,12 @@ topologySpreadConstraints:
512512

513513
t.Run("PodSpecWithAdditionalVolumes", func(t *testing.T) {
514514
cluster := cluster.DeepCopy()
515-
cluster.Spec.Proxy.PGBouncer.Volumes.Additional = []v1beta1.AdditionalVolume{{
516-
ClaimName: "required",
517-
Name: "required",
518-
}}
515+
cluster.Spec.Proxy.PGBouncer.Volumes = &v1beta1.PGBouncerVolumesSpec{
516+
Additional: []v1beta1.AdditionalVolume{{
517+
ClaimName: "required",
518+
Name: "required",
519+
}},
520+
}
519521

520522
deploy, specified, err := reconciler.generatePGBouncerDeployment(
521523
ctx, cluster, primary, configmap, secret)

0 commit comments

Comments
 (0)