Skip to content

Commit 84d90cd

Browse files
committed
(bug) fix core when using Flux Sources
If both artifacts are nil, then artifact is same
1 parent 7604855 commit 84d90cd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

controllers/clustersummary_predicates.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,10 @@ func hasArtifactChanged(objNew, objOld client.Object) bool {
307307
}
308308

309309
func isArtifactSame(oldArtifact, newArtifact *sourcev1.Artifact) bool {
310+
if oldArtifact == nil && newArtifact == nil {
311+
return true
312+
}
313+
310314
if oldArtifact == nil && newArtifact != nil {
311315
return false
312316
}

0 commit comments

Comments
 (0)