Skip to content

Commit 7d84c61

Browse files
authored
Merge pull request #660 from aryan9600/garbage-retention
Remove leftover timeout in reconcilers
2 parents f2ae578 + 72a4982 commit 7d84c61

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

controllers/helmchart_controller.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,6 @@ func (r *HelmChartReconciler) notify(oldObj, newObj *sourcev1.HelmChart, build *
326326
// they match the Storage server hostname of current runtime.
327327
func (r *HelmChartReconciler) reconcileStorage(ctx context.Context, obj *sourcev1.HelmChart, build *chart.Build) (sreconcile.Result, error) {
328328
// Garbage collect previous advertised artifact(s) from storage
329-
// Abort if it takes more than 5 seconds.
330-
ctx, cancel := context.WithTimeout(ctx, time.Second*5)
331-
defer cancel()
332329
_ = r.garbageCollect(ctx, obj)
333330

334331
// Determine if the advertised artifact is still in storage

controllers/helmrepository_controller.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,6 @@ func (r *HelmRepositoryReconciler) notify(oldObj, newObj *sourcev1.HelmRepositor
285285
// they match the Storage server hostname of current runtime.
286286
func (r *HelmRepositoryReconciler) reconcileStorage(ctx context.Context, obj *sourcev1.HelmRepository, _ *sourcev1.Artifact, _ *repository.ChartRepository) (sreconcile.Result, error) {
287287
// Garbage collect previous advertised artifact(s) from storage
288-
// Abort if it takes more than 5 seconds.
289-
ctx, cancel := context.WithTimeout(ctx, time.Second*5)
290-
defer cancel()
291288
_ = r.garbageCollect(ctx, obj)
292289

293290
// Determine if the advertised artifact is still in storage

0 commit comments

Comments
 (0)