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", + }, }, }