diff --git a/pkg/schemapatcher/gen.go b/pkg/schemapatcher/gen.go index 6aec36ca6..31e5a9109 100644 --- a/pkg/schemapatcher/gen.go +++ b/pkg/schemapatcher/gen.go @@ -128,6 +128,9 @@ func (g Generator) Generate(ctx *genall.GenerationContext) (result error) { } typeIdent := crdgen.TypeIdent{Package: pkg, Name: groupKind.Kind} + if _, ok := parser.Types[typeIdent]; !ok { + continue + } parser.NeedFlattenedSchemaFor(typeIdent) fullSchema := parser.FlattenedSchemata[typeIdent]