We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1cec20 commit 133bc92Copy full SHA for 133bc92
pkg/crd/v3/parser.go
@@ -109,7 +109,6 @@ func (p *Parser) NeedSchemaFor(typ TypeIdent) error {
109
schemaCtx := newSchemaContext(typ.Package, p)
110
schema := infoToSchema(schemaCtx.ForInfo(info))
111
112
- // TODO(directxman12): threadsafe
113
p.Schemata[typ] = *schema
114
115
return nil
pkg/crd/v3/references.go
@@ -94,6 +94,10 @@ func (r *referenceSet) collectReferences(info *markers.TypeInfo) {
94
}
95
96
if len(info.Fields) == 0 {
97
+ if _, isIface := info.RawSpec.Type.(*ast.InterfaceType); isIface {
98
+ // skip interfaces, we never care about references in them
99
+ return
100
+ }
101
ast.Walk(col, info.RawSpec.Type)
102
return
103
0 commit comments