We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a5ed99b + d30e5fc commit 83f6193Copy full SHA for 83f6193
pkg/crd/known_types.go
@@ -84,6 +84,17 @@ var KnownPackages = map[string]PackageOverride{
84
}
85
// No point in calling AddPackage, this is the sole inhabitant
86
},
87
+
88
+ "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1": func(p *Parser, pkg *loader.Package) {
89
+ p.Schemata[TypeIdent{Name: "JSON", Package: pkg}] = apiext.JSONSchemaProps{
90
+ XPreserveUnknownFields: boolPtr(true),
91
+ }
92
+ p.AddPackage(pkg) // get the rest of the types
93
+ },
94
+}
95
96
+func boolPtr(b bool) *bool {
97
+ return &b
98
99
100
// AddKnownTypes registers the packages overrides in KnownPackages with the given parser.
0 commit comments