update addon api

Signed-off-by: liuwei <liuweixa@redhat.com>
This commit is contained in:
liuwei
2021-04-13 03:07:01 +00:00
parent 0e540f0e50
commit 522174a9bc

View File

@@ -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{},