Skip to content

Commit 866ed1d

Browse files
author
Tatsuhiro Tsujikawa
committed
Resolve reference in order to remove $ref which is not supported by k8s
1 parent d6efdcd commit 866ed1d

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 &baseSchema, nil
251+
return f.FlattenSchema(baseSchema, typ.Package), nil
252252
}
253253

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

0 commit comments

Comments
 (0)