Skip to content

Commit

Permalink
fix: omit sink state from hash to avoid double-emitting on VR creation
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
  • Loading branch information
TylerGillson committed Nov 9, 2023
1 parent 4903786 commit 071b960
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/validationresult_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestHash(t *testing.T) {
},
},
},
expectedHash: "mCyJwAeP5yOG82mDw8Yy1Q==",
expectedHash: "Ldcfr8OZ6D/LRuLfasCrKg==",
},
}
for _, c := range cs {
Expand Down
1 change: 0 additions & 1 deletion api/v1alpha1/validationresult_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ func (r *ValidationResult) Hash() string {
fmt.Fprint(digester, r.ObjectMeta.UID)
fmt.Fprint(digester, r.Spec)
fmt.Fprint(digester, r.Status.State)
fmt.Fprint(digester, r.Status.SinkState)

if len(r.Status.Conditions) > 0 {
c := r.Status.Conditions[0].DeepCopy()
Expand Down

0 comments on commit 071b960

Please sign in to comment.