Merge pull request #108 from skeeey/update-addon-api

update addon api
This commit is contained in:
OpenShift Merge Robot
2021-04-13 00:06:56 -07:00
committed by GitHub

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