Skip to content

Commit bcc09c7

Browse files
committed
add init container to readTestCR
1 parent dbe5f09 commit bcc09c7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

percona/controller/pgcluster/testutils_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ func readTestCR(name, namespace, testFile string) (*v2.PerconaPGCluster, error)
100100
}
101101
cr.Annotations[pNaming.AnnotationCustomPatroniVersion] = "4.0.0"
102102
cr.Status.Postgres.Version = cr.Spec.PostgresVersion
103+
cr.Spec.InitContainer = &v1beta1.InitContainerSpec{
104+
Image: "some-image",
105+
}
103106
return cr, nil
104107
}
105108

0 commit comments

Comments
 (0)