Skip to content

Commit

Permalink
Merge pull request #240 from kubescape/feature/incidents_aggregation
Browse files Browse the repository at this point in the history
logic that support fields enrichment
  • Loading branch information
amitschendel authored Aug 25, 2024
2 parents 5097ce6 + a181a18 commit 98f8571
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions admission/exporter/http_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,8 @@ func (exporter *HTTPExporter) SendAdmissionAlert(ruleFailure rules.RuleFailure)
return
}
// populate the RuntimeAlert struct with the data from the failedRule
k8sDetails := apitypes.RuntimeAlertK8sDetails{
ClusterName: exporter.ClusterName,
}
k8sDetails := ruleFailure.GetRuntimeAlertK8sDetails()
k8sDetails.ClusterName = exporter.ClusterName

httpAlert := apitypes.RuntimeAlert{
Message: ruleFailure.GetRuleAlert().RuleDescription,
Expand Down

0 comments on commit 98f8571

Please sign in to comment.