Skip to content

Commit 1f64936

Browse files
stttsstevekuznetsov
authored andcommitted
UPSTREAM: <carry>: SQUASH: print CRD on missing apis.kcp.dev/identity
1 parent a2727fd commit 1f64936

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/kcp_rest_options_getter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func (t apiBindingAwareCRDRESTOptionsGetter) GetRESTOptions(resource schema.Grou
5151
// Bound CRDs must have the associated identity annotation
5252
apiIdentity := t.crd.Annotations["apis.kcp.dev/identity"]
5353
if apiIdentity == "" {
54-
return generic.RESTOptions{}, fmt.Errorf("missing 'apis.kcp.dev/identity' annotation")
54+
return generic.RESTOptions{}, fmt.Errorf("missing 'apis.kcp.dev/identity' annotation on CRD %s|%s for %s.%s", logicalcluster.From(t.crd), t.crd.Name, t.crd.Spec.Names.Plural, t.crd.Spec.Group)
5555
}
5656

5757
// Modify the ResourcePrefix so it results in e.g. /registry/mygroup.io/widgets/identity4567/...

0 commit comments

Comments
 (0)