mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-08-01 15:40:02 +00:00
updated the guard on the event
Signed-off-by: AlexsJones <alexsimonjones@gmail.com>
This commit is contained in:
parent
f873cf317f
commit
ca534b337a
@ -55,9 +55,10 @@ func RunAnalysis(ctx context.Context, client *kubernetes.Client, aiClient *ai.Cl
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
|
||||
failureDetails = append(failureDetails, evt.Message)
|
||||
brokenPods[fmt.Sprintf("%s/%s", pod.Namespace, pod.Name)] = failureDetails
|
||||
if evt.Reason == "FailedCreatePodSandBox" {
|
||||
failureDetails = append(failureDetails, evt.Message)
|
||||
brokenPods[fmt.Sprintf("%s/%s", pod.Namespace, pod.Name)] = failureDetails
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user