Files
sealos/controllers/pkg/notification
Jiahui 3eb6823238 feat: message notification (#4350)
* add ali sms service for debt message notification

* add notification crd && fix debt update notification
2023-11-29 15:27:34 +08:00
..
2023-11-29 15:27:34 +08:00

Notification

Notification center of Sealos Cloud,Other controllers will send notification CR to user namespace.

type NotificationSpec struct {
    Title      string json:"title"  
    Message    string json:"message" 
    TimeStamp  int64  json:"timestamp"
    From       string json:"from,omitempty" // from which controller send the notification
    Importance Type   json:"importance,omitempty"
}

Frontend need to know the notification is read or unread,will using label to select,label key is isRead,value is True/False.

How to deploy

kubectl apply -f deploy/manifests/deploy.yaml