- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 31 for structuralSchemas (0.26 sec)
-
staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/status_strategy_test.go
Version: crd.Spec.Versions[0].Name, Kind: crd.Spec.Names.Kind, Group: crd.Spec.Group, } strategy.customResourceStrategy.validator.kind = kind ss, _ := structuralschema.NewStructural(crd.Spec.Versions[0].Schema.OpenAPIV3Schema) strategy.structuralSchema = ss ctx := context.TODO() tcs := []struct { name string old *unstructured.Unstructured obj *unstructured.Unstructured isValid bool
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 18 22:16:10 UTC 2023 - 6.9K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder.go
} if !validation.SchemaHasInvalidTypes(internalCRDSchema.OpenAPIV3Schema) { if ss, err := structuralschema.NewStructural(internalCRDSchema.OpenAPIV3Schema); err == nil { // skip non-structural schemas unless explicitly asked to produce swagger from them if opts.AllowNonStructural || len(structuralschema.ValidateStructural(nil, ss)) == 0 { schema = ss
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 19:06:46 UTC 2024 - 22.8K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/metrics_test.go
limitations under the License. */ package validation_test import ( "context" "strings" "testing" "time" "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions" structuralschema "k8s.io/apiextensions-apiserver/pkg/apiserver/schema" "k8s.io/apiextensions-apiserver/pkg/apiserver/validation" apiextensionsfeatures "k8s.io/apiextensions-apiserver/pkg/features"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 10.9K bytes - Viewed (1) -
staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder_test.go
apiextensionsv1.Convert_v1_JSONSchemaProps_To_apiextensions_JSONSchemaProps(v1beta1Schema, internalSchema, nil) var err error schema, err = structuralschema.NewStructural(internalSchema) if err != nil { t.Fatalf("structural schema error: %v", err) } if errs := structuralschema.ValidateStructural(nil, schema); len(errs) > 0 { t.Fatalf("structural schema validation error: %v", errs.ToAggregate()) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 19:06:46 UTC 2024 - 26.2K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/v2/conversion_test.go
fuzz "github.com/google/gofuzz" "gopkg.in/yaml.v2" "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions" apiextensionsv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1" structuralschema "k8s.io/apiextensions-apiserver/pkg/apiserver/schema" "k8s.io/kube-openapi/pkg/util/proto" "k8s.io/kube-openapi/pkg/validation/spec" "k8s.io/utils/pointer" )
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/apis/apiextensions/validation/cel_validation.go
limitations under the License. */ package validation import ( "fmt" "math" "sort" "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions" structuralschema "k8s.io/apiextensions-apiserver/pkg/apiserver/schema" "k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model" "k8s.io/apimachinery/pkg/util/validation/field" "k8s.io/apiserver/pkg/cel" )
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 10 22:05:55 UTC 2022 - 13.8K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/validation/validation.go
} return false } func schemaIsNonStructural(schema *apiextensions.JSONSchemaProps) bool { if schema == nil { return false } ss, err := structuralschema.NewStructural(schema) if err != nil { return true } return len(structuralschema.ValidateStructural(nil, ss)) > 0 } // requirePrunedDefaults returns false if there are any unpruned default in oldCRDSpec, and true otherwise.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 82.6K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/validation_test.go
"k8s.io/apiextensions-apiserver/pkg/apis/apiextensions" apiextensionsfuzzer "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/fuzzer" apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" structuralschema "k8s.io/apiextensions-apiserver/pkg/apiserver/schema" "k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel" "k8s.io/apimachinery/pkg/api/apitesting/fuzzer" apiequality "k8s.io/apimachinery/pkg/api/equality"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 18 04:49:59 UTC 2023 - 24.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/environment/environment.go
// EnvOptions: []cel.EnvOption{ cel.Variable("object", objectType.CelType()) }, // }, // // To create an DeclType from a CRD, use a structural schema. For example: // // schema := structuralschema.NewStructural(crdJSONProps) // objectType := apiservercel.SchemaDeclType(schema, true) // // Required. IntroducedVersion *version.Version // RemovedVersion is the version at which these options were removed.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 08 15:52:31 UTC 2023 - 10.1K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test.go
"time" jsonpatch "gopkg.in/evanphx/json-patch.v4" apiextensionsinternal "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions" apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" structuralschema "k8s.io/apiextensions-apiserver/pkg/apiserver/schema" apiservervalidation "k8s.io/apiextensions-apiserver/pkg/apiserver/validation" "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 59.5K bytes - Viewed (0)