Files
sealos/controllers/pkg/notification
zzjin bd68a735b4 Depre Bytebase and imagehub. (#4273)
* Depre Bytebase.

Signed-off-by: zzjin <tczzjin@gmail.com>

* Fix format.

Signed-off-by: zzjin <tczzjin@gmail.com>

* Add code license header.

Signed-off-by: zzjin <tczzjin@gmail.com>

* Move imagehub && hub into staging.

Signed-off-by: zzjin <tczzjin@gmail.com>

* Update ci fix.

Signed-off-by: zzjin <tczzjin@gmail.com>

* Fix goimports format.

Signed-off-by: zzjin <tczzjin@gmail.com>

---------

Signed-off-by: zzjin <tczzjin@gmail.com>
2023-11-08 23:39:01 +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