Skip to content

Commit de59687

Browse files
authored
Merge pull request #1095 from gianlucam76/flux-sources-changes
(bug) Flux Source Artifact changes
2 parents 8ec7b98 + 2005422 commit de59687

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

controllers/clustersummary_predicates.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ func fluxGenericPredicate(obj client.Object, logger logr.Logger) bool {
275275
}
276276

277277
func hasArtifactChanged(objNew, objOld client.Object) bool {
278+
addTypeInformationToObject(getManagementClusterClient().Scheme(), objNew)
278279
switch objNew.GetObjectKind().GroupVersionKind().Kind {
279280
case sourcev1.GitRepositoryKind:
280281
newGitRepo := objNew.(*sourcev1.GitRepository)
@@ -312,5 +313,5 @@ func isArtifactSame(oldArtifact, newArtifact *sourcev1.Artifact) bool {
312313
if oldArtifact != nil && newArtifact == nil {
313314
return false
314315
}
315-
return reflect.DeepEqual(oldArtifact, newArtifact)
316+
return reflect.DeepEqual(oldArtifact.Digest, newArtifact.Digest)
316317
}

0 commit comments

Comments
 (0)