Skip to content

Commit 21434ad

Browse files
authored
Revert "Resolve reference in order to remove $ref which is not supported by k8s"
1 parent 3d3bfc1 commit 21434ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/crd/flatten.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ func (f *Flattener) loadUnflattenedSchema(typ TypeIdent) (*apiext.JSONSchemaProp
248248
if !found {
249249
return nil, fmt.Errorf("unable to locate schema for type %s", typ)
250250
}
251-
return f.FlattenSchema(baseSchema, typ.Package), nil
251+
return &baseSchema, nil
252252
}
253253

254254
// FlattenType flattens the given pre-loaded type, removing any references from it.

0 commit comments

Comments
 (0)