From 3ff10a65d2f1c90f7d08b79818a75d359b37d98e Mon Sep 17 00:00:00 2001 From: wanjunlei Date: Tue, 16 Mar 2021 19:13:04 +0800 Subject: [PATCH] resolve conversation Signed-off-by: wanjunlei --- pkg/constants/constants.go | 2 +- pkg/controller/notification/notification_controller_test.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/constants/constants.go b/pkg/constants/constants.go index 614aabe29..a24caed98 100644 --- a/pkg/constants/constants.go +++ b/pkg/constants/constants.go @@ -128,7 +128,7 @@ const ( NotificationTag = "Notification" NotificationSecretNamespace = "kubesphere-monitoring-federated" - NotificationManagedLabel = "notification/managed" + NotificationManagedLabel = "notification.kubesphere.io/managed" ) var ( diff --git a/pkg/controller/notification/notification_controller_test.go b/pkg/controller/notification/notification_controller_test.go index d3d317114..9609c6a35 100644 --- a/pkg/controller/notification/notification_controller_test.go +++ b/pkg/controller/notification/notification_controller_test.go @@ -47,6 +47,9 @@ var ( ObjectMeta: metav1.ObjectMeta{ Name: "foo", Namespace: constants.NotificationSecretNamespace, + Labels: map[string]string{ + constants.NotificationManagedLabel: "true", + }, }, }