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
returnadmission.NewForbidden(a, fmt.Errorf("annotation %q must match canonical path %q", core.LogicalClusterPathAnnotationKey, thisPath))
167
+
// Only validate if annotation is explicitly set (found=true) and paths don't match.
168
+
// This prevents admission of the objects without the annotation (with exception of APIBindings).
169
+
ifvalue!=thisPath&&!isAPIBinding {
170
+
returnadmission.NewForbidden(a, fmt.Errorf("annotation for %s, %q must match canonical path %q, but got %q", a.GetName(), core.LogicalClusterPathAnnotationKey, thisPath, value))
0 commit comments