- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for declTypes (0.15 sec)
-
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/typechecking.go
var varOpts []cel.EnvOption var declTypes []*apiservercel.DeclType // namespace, hand-crafted type declTypes = append(declTypes, namespaceType) varOpts = append(varOpts, createVariableOpts(namespaceType, plugincel.NamespaceVarName)...) // request, hand-crafted type declTypes = append(declTypes, requestType)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 15.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/environment/environment_test.go
opts: []VersionedOptions{ { IntroducedVersion: version.MajorMinor(1, 28), RemovedVersion: version.MajorMinor(1, 29), DeclTypes: []*apiservercel.DeclType{widgetsType}, EnvOptions: []cel.EnvOption{ cel.Variable("widget", cel.ObjectType("Widget")), }, }, }, }, { name: "declared type disabled after removed",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 10K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation.go
oldSelfEnvSet, optionalOldSelfEnvSet, err := prepareEnvSet(baseEnvSet, declType) if err != nil { return nil, err } estimator := newCostEstimator(declType) // compResults is the return value which saves a list of compilation results in the same order as x-kubernetes-validations rules. compResults := make([]CompilationResult, len(celRules)) maxCardinality := maxCardinality(declType.MinSerializedSize) for i, rule := range celRules {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 20:13:14 UTC 2024 - 13.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/compile.go
)) } // BuildNamespaceType generates a DeclType for Namespace. // Certain nested fields in Namespace (e.g. managedFields, ownerReferences etc.) are omitted in the generated DeclType // by design. func BuildNamespaceType() *apiservercel.DeclType { field := func(name string, declType *apiservercel.DeclType, required bool) *apiservercel.DeclField { return apiservercel.NewDeclField(name, declType, required, nil, nil) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 10.5K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation.go
// exist. declType is expected to be a CEL DeclType corresponding to the structural schema. // perCallLimit was added for testing purpose only. Callers should always use const PerCallLimit from k8s.io/apiserver/pkg/apis/cel/config.go as input. func validator(validationSchema, nodeSchema *schema.Structural, isResourceRoot bool, declType *cel.DeclType, perCallLimit uint64) *Validator { compilationSchema := *nodeSchema
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 20 18:21:31 UTC 2024 - 32.2K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model/schemas_test.go
nested, _ := cust.FindField("nested") metadata, _ := cust.FindField("metadata") expectedObjTypeMap := map[string]*apiservercel.DeclType{ "CustomObject": cust, "CustomObject.nested": nested.Type, "CustomObject.metadata": metadata.Type, } objTypeMap := map[string]*apiservercel.DeclType{} for name, t := range typeMap { if t.IsObject() { objTypeMap[name] = t } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 20:13:14 UTC 2024 - 14K bytes - Viewed (0) -
tensorflow/c/eager/c_api.cc
if (methods_.summarize == nullptr) { return tensorflow::CustomDeviceTensorHandle::SummarizeValue(summary); } TF_Status c_status; std::unique_ptr<TF_Buffer, decltype(&TF_DeleteBuffer)> summary_buffer( methods_.summarize(data_, &c_status), TF_DeleteBuffer); if (!c_status.status.ok()) { return c_status.status; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 08:11:23 UTC 2024 - 44K bytes - Viewed (0)