This repository was archived by the owner on Jun 2, 2021. It is now read-only.
Commit d4d891c
Do not populate resource cache when resource_matching is disabled
Previously the `resource_matching` feature flag would only guard against
returning resource matches to users who queried the
`/v3/resource_matches` endpoint. However, it would not prevent packages
from being uploaded to the resource cache, causing blobstores to bloat
unnecessarily. This commit updates the behavior and only uploads package
bits to the resource cache blobstore when the feature flag is enabled.
[#172640608](https://www.pivotaltracker.com/story/show/172640608)1 parent 5780ec6 commit d4d891c
2 files changed
Lines changed: 13 additions & 1 deletion
File tree
- lib/cloud_controller/packager
- spec/unit/lib/cloud_controller/packager
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
179 | 191 | | |
180 | 192 | | |
181 | 193 | | |
| |||
0 commit comments