Skip to content

Commit

Permalink
pgupgrade: Fix clairpgupgrade path (PROJQUAY-7392)
Browse files Browse the repository at this point in the history
- Fix kustomize path for clairpgupgrade when clair is managed/unmanaged
  • Loading branch information
jonathankingfc committed Jul 2, 2024
1 parent 62884a1 commit 5bb5acb
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions pkg/kustomize/kustomize.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,14 +434,13 @@ func KustomizationFor(
}

if ctx.NeedsPgUpgrade {
if v1.ComponentIsManaged(quay.Spec.Components, v1.ComponentClair) {
componentPaths = append(componentPaths, "../components/pgupgrade/scale-down-clair")
} else {
componentPaths = append(componentPaths, "../components/pgupgrade/base")
}
componentPaths = append(componentPaths, "../components/pgupgrade/base")
}
if ctx.NeedsClairPgUpgrade {
componentPaths = append(componentPaths, "../components/clairpgupgrade")
if v1.ComponentIsManaged(quay.Spec.Components, v1.ComponentClair) {
componentPaths = append(componentPaths, "../components/clairpgupgrade/scale-down-clair")
}
componentPaths = append(componentPaths, "../components/clairpgupgrade/base")
}

images := []types.Image{}
Expand Down

0 comments on commit 5bb5acb

Please sign in to comment.