fix bug can not delete notification secret

Signed-off-by: wanjunlei <wanjunlei@yunify.com>
This commit is contained in:
wanjunlei
2021-03-19 15:03:47 +08:00
parent 3ff10a65d2
commit 1fdeeaeb42
2 changed files with 15 additions and 14 deletions

View File

@@ -111,6 +111,7 @@ func TestOperator_Create(t *testing.T) {
Name: "test",
Namespace: constants.NotificationSecretNamespace,
Labels: map[string]string{
"type": "global",
constants.NotificationManagedLabel: "true",
},
},
@@ -119,6 +120,7 @@ func TestOperator_Create(t *testing.T) {
ObjectMeta: metav1.ObjectMeta{
Name: "test",
Labels: map[string]string{
"type": "global",
constants.NotificationManagedLabel: "true",
},
},