Skip to content

Commit

Permalink
Fixing recursed accumulation of path for managed clair resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubhra Deshpande committed Oct 1, 2024
1 parent 82188de commit 9bcd3ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component
patchesStrategicMerge:
- ./clair.deployment.patch.yaml
resources:
- "../base"
components:
- ../base
3 changes: 2 additions & 1 deletion pkg/kustomize/kustomize.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,9 @@ func KustomizationFor(
if ctx.NeedsClairPgUpgrade {
if v1.ComponentIsManaged(quay.Spec.Components, v1.ComponentClair) {
componentPaths = append(componentPaths, "../components/clairpgupgrade/scale-down-clair")
} else {
componentPaths = append(componentPaths, "../components/clairpgupgrade/base")
}
componentPaths = append(componentPaths, "../components/clairpgupgrade/base")
}

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

0 comments on commit 9bcd3ac

Please sign in to comment.