Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion controllers/clustersummary_predicates.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ func fluxGenericPredicate(obj client.Object, logger logr.Logger) bool {
}

func hasArtifactChanged(objNew, objOld client.Object) bool {
addTypeInformationToObject(getManagementClusterClient().Scheme(), objNew)
switch objNew.GetObjectKind().GroupVersionKind().Kind {
case sourcev1.GitRepositoryKind:
newGitRepo := objNew.(*sourcev1.GitRepository)
Expand Down Expand Up @@ -312,5 +313,5 @@ func isArtifactSame(oldArtifact, newArtifact *sourcev1.Artifact) bool {
if oldArtifact != nil && newArtifact == nil {
return false
}
return reflect.DeepEqual(oldArtifact, newArtifact)
return reflect.DeepEqual(oldArtifact.Digest, newArtifact.Digest)
}