From a894aa4cdc26dd822594f7b7564b5dbe14d5309e Mon Sep 17 00:00:00 2001 From: Aiwantaozi Date: Mon, 15 Apr 2019 15:24:58 +0800 Subject: [PATCH] Update notifier to not required Problem: User prefer allow empty notifier Solution: Allow empty notifer in cluster/project group Issue: https://github.com/rancher/rancher/issues/18616 --- apis/management.cattle.io/v3/alerting_types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/management.cattle.io/v3/alerting_types.go b/apis/management.cattle.io/v3/alerting_types.go index 2e0c0435..2bd0172d 100644 --- a/apis/management.cattle.io/v3/alerting_types.go +++ b/apis/management.cattle.io/v3/alerting_types.go @@ -129,13 +129,13 @@ type ProjectAlertGroup struct { type ClusterGroupSpec struct { ClusterName string `json:"clusterName" norman:"type=reference[cluster]"` - Recipients []Recipient `json:"recipients,omitempty" norman:"required"` + Recipients []Recipient `json:"recipients,omitempty"` CommonGroupField } type ProjectGroupSpec struct { ProjectName string `json:"projectName" norman:"type=reference[project]"` - Recipients []Recipient `json:"recipients,omitempty" norman:"required"` + Recipients []Recipient `json:"recipients,omitempty"` CommonGroupField }