Skip to content

Commit 832d902

Browse files
authored
Add NAMESPACE to the crash message (#11)
1 parent 8d362f9 commit 832d902

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func (c *Controller) sendCrashNotification(pod *v1.Pod, container *v1.ContainerS
146146
logs, _ := c.clientset.
147147
CoreV1().Pods(pod.Namespace).
148148
GetLogs(pod.Name, &v1.PodLogOptions{Container: container.Name}).Do(context.Background()).Raw()
149-
message := fmt.Sprintf("Container %s of pod %s keeps crashing, maybe its time to intervene.", container.Name, pod.Name)
149+
message := fmt.Sprintf("%s: Container %s of pod %s keeps crashing, maybe its time to intervene.", pod.Namespace, container.Name, pod.Name)
150150
note := &chat.CrashNotification{
151151
Title: "Crash loop detected!",
152152
Message: message,

0 commit comments

Comments
 (0)