- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for MessageExpression (1.14 sec)
-
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation.go
MaxCardinality uint64 // MessageExpression represents the cel Program that should be evaluated to generate an error message if the rule // fails to validate. If no MessageExpression was given, or if this expression failed to compile, this will be nil. MessageExpression cel.Program // MessageExpressionError represents an error encountered during compilation of MessageExpression. If no error was // encountered, this will be nil.
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/apiextensions-apiserver/pkg/apiserver/schema/cel/validation.go
warning.AddWarning(ctx, "", e.Error()) } else { errs = append(errs, e) } } if compiled.MessageExpression != nil { messageExpression, newRemainingBudget, msgErr := evalMessageExpression(ctx, compiled.MessageExpression, rule.MessageExpression, activation, remainingBudget) if msgErr != nil { if msgErr.Type == cel.ErrorTypeInternal {
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/adaptor.go
type StructuralValidationRule struct { rule, message, messageExpression, fieldPath string } func (s *StructuralValidationRule) Rule() string { return s.rule } func (s *StructuralValidationRule) Message() string { return s.message } func (s *StructuralValidationRule) FieldPath() string { return s.fieldPath } func (s *StructuralValidationRule) MessageExpression() string { return s.messageExpression }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 20:13:14 UTC 2024 - 8.2K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go
messageExpression: `"str with \na newline"`, costBudget: celconfig.RuntimeCELCostBudget, expectedLogErr: "messageExpression should not contain line breaks", expectedValidationErr: "message not messageExpression", }, { name: "messageExpression is not allowed to generate messages >5000 characters", message: "message not messageExpression",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 17:14:10 UTC 2024 - 159.9K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation_test.go
}, }, { name: "messageExpression inclusion", input: schema.Structural{ Generic: schema.Generic{ Type: "string", }, ValidationExtensions: schema.ValidationExtensions{ XValidations: apiextensions.ValidationRules{ { Rule: "self.startsWith('s')", MessageExpression: `"scoped field should start with 's'"`, }, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 20:13:14 UTC 2024 - 51.5K bytes - Viewed (0) -
staging/src/k8s.io/api/admissionregistration/v1/generated.proto
optional string reason = 3; // messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. // Since messageExpression is used as a failure message, it must evaluate to a string. // If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 23 17:42:49 UTC 2024 - 51.8K bytes - Viewed (0) -
staging/src/k8s.io/api/admissionregistration/v1/types.go
// messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. // Since messageExpression is used as a failure message, it must evaluate to a string. // If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 23 17:42:49 UTC 2024 - 61.6K bytes - Viewed (0) -
pkg/generated/openapi/zz_generated.openapi.go
}, }, "messageExpression": { SchemaProps: spec.SchemaProps{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 18:37:07 UTC 2024 - 3M bytes - Viewed (0) -
api/openapi-spec/swagger.json
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 18:37:07 UTC 2024 - 3.1M bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.27.md
- Added `messageExpression` field to `ValidationRule`. ([#115969](https://github.com/kubernetes/kubernetes/pull/115969), [@DangerOnTheRanger](https://github.com/DangerOnTheRanger))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 23:01:06 UTC 2024 - 455.3K bytes - Viewed (0)