We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a56e37 commit a332e0aCopy full SHA for a332e0a
controllers/statussync/policy_status_sync.go
@@ -716,6 +716,19 @@ func StartComplianceEventsSyncer(
716
}
717
718
719
+ // If it's a bad request, then the database experienced data loss and the database ID is no longer valid.
720
+ if httpResponse.StatusCode == http.StatusBadRequest {
721
+ log.V(0).Info(
722
+ "Failed to record the compliance event with the compliance API. Will not requeue.",
723
+ "statusCode", httpResponse.StatusCode,
724
+ "message", message,
725
+ )
726
+ events.Forget(ceUntyped)
727
+ events.Done(ceUntyped)
728
+
729
+ continue
730
+ }
731
732
log.Info(
733
"Failed to record the compliance event with the compliance API. Will requeue.",
734
"statusCode", httpResponse.StatusCode,
0 commit comments