MCPcopy
hub / github.com/argoproj/argo-cd / currentSourceEqualsSyncedSource

Function currentSourceEqualsSyncedSource

controller/appcontroller.go:2004–2010  ·  view source on GitHub ↗
(app *appv1.Application)

Source from the content-addressed store, hash-verified

2002}
2003
2004func currentSourceEqualsSyncedSource(app *appv1.Application) bool {
2005 if app.Spec.HasMultipleSources() {
2006 return app.Spec.Sources.Equals(app.Status.Sync.ComparedTo.Sources)
2007 }
2008 source := app.Spec.GetSource()
2009 return source.Equals(&app.Status.Sync.ComparedTo.Source)
2010}
2011
2012// needRefreshAppStatus answers if application status needs to be refreshed.
2013// Returns true if application never been compared, has changed or comparison result has expired.

Callers 1

needRefreshAppStatusMethod · 0.85

Calls 3

HasMultipleSourcesMethod · 0.80
EqualsMethod · 0.45
GetSourceMethod · 0.45

Tested by

no test coverage detected