From 522174a9bc59470d346d6171bb80f76eda0e5b86 Mon Sep 17 00:00:00 2001 From: liuwei Date: Tue, 13 Apr 2021 03:07:01 +0000 Subject: [PATCH] update addon api Signed-off-by: liuwei --- test/e2e/common.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/e2e/common.go b/test/e2e/common.go index d27a41f27..2ec1b1f72 100644 --- a/test/e2e/common.go +++ b/test/e2e/common.go @@ -515,9 +515,11 @@ func (t *Tester) CreateManagedClusterAddOn(managedClusterNamespace, addOnName st context.TODO(), &addonv1alpha1.ManagedClusterAddOn{ ObjectMeta: metav1.ObjectMeta{ - Namespace: managedClusterNamespace, - Name: addOnName, - Annotations: map[string]string{"addon.open-cluster-management.io/installNamespace": addOnName}, + Namespace: managedClusterNamespace, + Name: addOnName, + }, + Spec: addonv1alpha1.ManagedClusterAddOnSpec{ + InstallNamespace: addOnName, }, }, metav1.CreateOptions{},