You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
apiSub.SetCondition(condition.NewNotReadyCondition("VisibilityConstraintViolation", "ApiExposure and ApiSubscription visibility combination is not allowed"))
fmt.Sprintf("ApiSubscription is blocked. Subscriptions from zone '%s' are not allowed due to exposure visiblity constraints", apiSub.Spec.Zone.GetName())))
93
+
returnnil
94
+
}
95
+
84
96
// TODO: further validations (currently contained in the old code)
85
97
// - validate if team category allows subscription of api category
86
-
// - validate visibility of apiExposure (WORLD, ENTERPRISE, ZONE) depending on subscription zone
87
98
88
99
// get application from cluster and get clientId from status
log.Info(fmt.Sprintf("Api is exposed with visibility '%s', but subscriptions is from zone with visibility '%s'", apiapi.VisibilityEnterprise, subZone.Spec.Visibility))
0 commit comments