k8sgpt-ai / k8sgpt-operator

Automatic SRE Superpowers within your Kubernetes cluster
https://k8sgpt.ai
Apache License 2.0
295 stars 81 forks source link

feat: add mattermost sink #303

Closed tozastation closed 8 months ago

tozastation commented 8 months ago

Closes #300

📑 Description

  1. added mattermost sink
    • support mattermost incoming webhook
  2. added parameter on sink (K8sGPT API)
    • Channel (Mattermost Optional Param)
    • Username (Mattermost Optional Param)
    • IconURL (Mattermost Optional Param)
    • Mattermost Docs

✅ Checks

ℹ Additional Information

  1. Confirmed that no value is entered in the notification content when ai is set to enable: false. (current Slack notifications may be notified with no value as well.)
Screenshot 2024-01-01 at 8 05 19 PM

Change to -> I tried to load error text when ai is enable: false.

Screenshot 2024-01-01 at 8 05 08 PM
  1. E2E Test Contents
    • test assets is here
    • deploy mattermost server
    • applying resources detected in k8sgpt
    • confirmation of incoming notifications

ai.enable: false pattern

Screenshot 2024-01-01 at 8 05 08 PM

ai.enable: true pattern

Screenshot 2024-01-01 at 9 17 42 PM
tozastation commented 8 months ago

@AlexsJones PR created. Please review when you are available...!

arbreezy commented 8 months ago

@tozastation you also have to manually update the helm chart crd template

tozastation commented 8 months ago

@AlexsJones @arbreezy Thanks for the review !! I will respond to it !!

tozastation commented 8 months ago

@AlexsJones

I added an explanation to README.md of k8sgpt-operator. Please check it...! Which file should I put in k8sgpt-ai/docs?