Skip to content

Commit

Permalink
pgupgrade: Update pgupgrade path (PROJQUAY-7329) (#937)
Browse files Browse the repository at this point in the history
- Remove base from pgupgrade path to ensure that the file location is parsed properly by kustomize package

Co-authored-by: Jonathan King <[email protected]>
  • Loading branch information
1 parent 868b2e6 commit f79d4e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/kustomize/kustomize.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ func KustomizationFor(
}

if ctx.NeedsPgUpgrade {
componentPaths = append(componentPaths, "../components/pgupgrade/base")
componentPaths = append(componentPaths, "../components/pgupgrade")
}
if ctx.NeedsClairPgUpgrade {
if v1.ComponentIsManaged(quay.Spec.Components, v1.ComponentClair) {
Expand Down
4 changes: 2 additions & 2 deletions pkg/kustomize/kustomize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ var kustomizationForTests = []struct {
"../components/clair",
"../components/redis",
"../components/postgres",
"../components/pgupgrade/base",
"../components/pgupgrade",
},
Images: []types.Image{
{Name: "quay.io/projectquay/quay", NewName: "quay", NewTag: "latest"},
Expand Down Expand Up @@ -224,7 +224,7 @@ var kustomizationForTests = []struct {
Components: []string{
"../components/redis",
"../components/postgres",
"../components/pgupgrade/base",
"../components/pgupgrade",
},
Images: []types.Image{
{Name: "quay.io/projectquay/quay", NewName: "quay", NewTag: "latest"},
Expand Down

0 comments on commit f79d4e1

Please sign in to comment.