Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Enqueue release on clone change only (#2081)
Browse files Browse the repository at this point in the history
Enqueue release on clone change only
  • Loading branch information
hiddeco authored May 23, 2019
2 parents 4e681a1 + 57fb1ad commit 81944c3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions integrations/helm/chartsync/chartsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,15 +243,15 @@ func (chs *ChartChangeSync) Run(stopCh <-chan struct{}, errc chan error, wg *syn
if cloneForChart.export != nil {
cloneForChart.export.Clean()
}
}

// Enqueue release
cacheKey, err := cache.MetaNamespaceKeyFunc(fhr.GetObjectMeta())
if err != nil {
continue
// we have a (new) clone, enqueue a release
cacheKey, err := cache.MetaNamespaceKeyFunc(fhr.GetObjectMeta())
if err != nil {
continue
}
chs.logger.Log("info", "enqueing release upgrade due to change in git chart source", "resource", fhr.ResourceID().String())
chs.releaseQueue.AddRateLimited(cacheKey)
}
chs.logger.Log("info", "enqueing release upgrade due to change in git chart source", "resource", fhr.ResourceID().String())
chs.releaseQueue.AddRateLimited(cacheKey)
}
}
case <-stopCh:
Expand Down

0 comments on commit 81944c3

Please sign in to comment.