Files
sealos/controllers/pkg/notification
Jiahui 9902819f76 feat(notification): add StartTime and EndTime fields to NotificationSpec (#6289)
Add two optional metav1.Time fields to mark notification active period:
- StartTime: marks when notification becomes active
- EndTime: marks when notification expires

This enables time-based notification control and filtering.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-09 10:42:05 +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 unreadwill using label to select,label key is isRead,value is True/False.

How to deploy

kubectl apply -f deploy/manifests/deploy.yaml