- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ToStructuralOpenAPIV2 (0.21 sec)
-
staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/v2/conversion.go
limitations under the License. */ package v2 import ( structuralschema "k8s.io/apiextensions-apiserver/pkg/apiserver/schema" ) // ToStructuralOpenAPIV2 converts our internal OpenAPI v3 structural schema to // to a v2 compatible schema. func ToStructuralOpenAPIV2(in *structuralschema.Structural) *structuralschema.Structural { if in == nil { return nil } out := in.DeepCopy()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 09 20:23:50 UTC 2020 - 3.5K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/v2/conversion_test.go
t.Fatal(err) } ss, err := structuralschema.NewStructural(&specInternal) if err != nil { t.Fatal(err) } ssV2 := ToStructuralOpenAPIV2(ss) schema := ssV2.ToKubeOpenAPI() if _, found := schema.Properties["spec"]; !found { t.Errorf("spec not found") } if _, found := schema.Properties["status"]; !found {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 02 14:34:26 UTC 2023 - 23.2K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder.go
} // no, we cannot add more properties here, not even TypeMeta/ObjectMeta because kubectl will complain about // unknown fields for anything else. } else { if opts.V2 { schema = openapiv2.ToStructuralOpenAPIV2(schema) } ret = schema.ToKubeOpenAPI() ret.SetProperty("metadata", *spec.RefSchema(refForOpenAPIVersion(objectMetaSchemaRef, opts.V2)).WithDescription(swaggerPartialObjectMetadataDescriptions["metadata"]))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 19:06:46 UTC 2024 - 22.8K bytes - Viewed (0)