Skip to content

Commit 538d4b2

Browse files
authored
Merge pull request #303 from muvaf/fix-unstructured
Treat unstructured.Unstructured type as known type.
2 parents 58324d7 + f348e9e commit 538d4b2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/crd/known_types.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ var KnownPackages = map[string]PackageOverride{
6868
p.AddPackage(pkg) // get the rest of the types
6969
},
7070

71+
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured": func(p *Parser, pkg *loader.Package) {
72+
p.Schemata[TypeIdent{Name: "Unstructured", Package: pkg}] = apiext.JSONSchemaProps{
73+
Type: "object",
74+
}
75+
p.AddPackage(pkg) // get the rest of the types
76+
},
77+
7178
"k8s.io/apimachinery/pkg/util/intstr": func(p *Parser, pkg *loader.Package) {
7279
p.Schemata[TypeIdent{Name: "IntOrString", Package: pkg}] = apiext.JSONSchemaProps{
7380
AnyOf: []apiext.JSONSchemaProps{

0 commit comments

Comments
 (0)