mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-07-06 17:52:21 +02:00
test(e2e): use correct image name in kustomize overlay (#841)
Some checks failed
release-please / release-please (push) Failing after 3s
Some checks failed
release-please / release-please (push) Failing after 3s
The e2e kustomize overlay tried to match
`docker.io/library/plugin-barman-cloud` but the base kustomization at
`kubernetes/kustomization.yaml` already transforms the bare
`plugin-barman-cloud` image to the GHCR name. The overlay must match
the base's output (`ghcr.io/cloudnative-pg/plugin-barman-cloud-testing`)
to override it.
Broken since b7daaac (#89) changed the base kustomization's newName
from `docker.io/library/plugin-barman-cloud` to the GHCR image without
updating the e2e overlay.
Closes #840
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
This commit is contained in:
parent
e973d8ea49
commit
7f92182884
@ -9,6 +9,7 @@ resources:
|
||||
- service.yaml
|
||||
- ../config/crd
|
||||
- ../config/rbac
|
||||
# If you change newName, update the e2e overlay in test/e2e/e2e_suite_test.go too.
|
||||
images:
|
||||
- name: plugin-barman-cloud
|
||||
newName: ghcr.io/cloudnative-pg/plugin-barman-cloud-testing
|
||||
|
||||
@ -57,9 +57,11 @@ var _ = SynchronizedBeforeSuite(func(ctx SpecContext) []byte {
|
||||
const barmanCloudKustomizationPath = "./kustomize/kubernetes/"
|
||||
barmanCloudKustomization := &kustomizeTypes.Kustomization{
|
||||
Resources: []string{barmanCloudKustomizationPath},
|
||||
// Override the image from the base kustomization (kubernetes/kustomization.yaml)
|
||||
// with the locally-built one. The Name must match the newName in the base.
|
||||
Images: []kustomizeTypes.Image{
|
||||
{
|
||||
Name: "docker.io/library/plugin-barman-cloud",
|
||||
Name: "ghcr.io/cloudnative-pg/plugin-barman-cloud-testing",
|
||||
NewName: "registry.barman-cloud-plugin:5000/plugin-barman-cloud",
|
||||
NewTag: "testing",
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user