fix test for ns webhook
only check tenant for kalm-enabled ns
@@ -36,6 +36,9 @@ func (suite *NSWebhookSuite) TestNoTenantError() {
ns := v1.Namespace{
ObjectMeta: metav1.ObjectMeta{
Name: randomName(),
+ Labels: map[string]string{
+ v1alpha1.KalmEnableLabelName: v1alpha1.KalmEnableLabelValue,
+ },
},
}
@@ -53,6 +56,7 @@ func (suite *NSWebhookSuite) TestCRUD() {
Name: randomName(),
Labels: map[string]string{
v1alpha1.TenantNameLabelKey: tenantName,
+ v1alpha1.KalmEnableLabelName: v1alpha1.KalmEnableLabelValue,
},
},
}
