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

Commit

Permalink
add a comment
Browse files Browse the repository at this point in the history
Signed-off-by: amit handa <amit.handa@doordash.com>
  • Loading branch information
amit-handda committed Dec 4, 2020
1 parent 4bf2c6f commit 8028d93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/operator/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,10 @@ func (c *Controller) enqueueUpdateJob(old, new interface{}) {
return
}

// if there is a change in the chartsource (ref change, eg),
// its possible that the mirror's ref-sha be obsolete w.r.t. upstream
// repo's ref-sha. To avoid spurious deploy, mirror is synced before
// doing helm reconciliation
if csDiff := cmp.Diff(oldHr.Spec.ChartSource,newHr.Spec.ChartSource); csDiff != "" {
c.apiServer.SyncMirrors()
}
Expand Down

0 comments on commit 8028d93

Please sign in to comment.