Skip to content

Commit 2f6801d

Browse files
committed
Remove hard-coded Protocol schema
Signed-off-by: Stefan Büringer [email protected]
1 parent 7ef21aa commit 2f6801d

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

pkg/crd/known_types.go

-9
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,6 @@ import (
2525
// KnownPackages overrides types in some comment packages that have custom validation
2626
// but don't have validation markers on them (since they're from core Kubernetes).
2727
var KnownPackages = map[string]PackageOverride{
28-
"k8s.io/api/core/v1": func(p *Parser, pkg *loader.Package) {
29-
// Explicit defaulting for the corev1.Protocol type in lieu of https://github.com/kubernetes/enhancements/pull/1928
30-
p.Schemata[TypeIdent{Name: "Protocol", Package: pkg}] = apiext.JSONSchemaProps{
31-
Type: "string",
32-
Default: &apiext.JSON{Raw: []byte(`"TCP"`)},
33-
}
34-
p.AddPackage(pkg)
35-
},
36-
3728
"k8s.io/apimachinery/pkg/apis/meta/v1": func(p *Parser, pkg *loader.Package) {
3829
p.Schemata[TypeIdent{Name: "ObjectMeta", Package: pkg}] = apiext.JSONSchemaProps{
3930
Type: "object",

0 commit comments

Comments
 (0)