mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-08-11 12:41:39 +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 {
|
if err != nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if evt.Reason == "FailedCreatePodSandBox" {
|
||||||
failureDetails = append(failureDetails, evt.Message)
|
failureDetails = append(failureDetails, evt.Message)
|
||||||
brokenPods[fmt.Sprintf("%s/%s", pod.Namespace, pod.Name)] = failureDetails
|
brokenPods[fmt.Sprintf("%s/%s", pod.Namespace, pod.Name)] = failureDetails
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user