- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for UserValidationCondition (0.2 sec)
-
staging/src/k8s.io/apiserver/pkg/authentication/cel/compile_test.go
&ClaimValidationCondition{ Expression: "claims.foo", }, }, wantErr: "must evaluate to bool", }, { name: "UserValidationCondition with wrong env", expressionAccessors: []ExpressionAccessor{ &UserValidationCondition{ Expression: "user.username == 'foo'", }, }, wantErr: `compilation failed: ERROR: <input>:1:1: undeclared reference to 'user' (in container '')`,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 7.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/cel/interface.go
return []*celgo.Type{celgo.AnyType} } var _ ExpressionAccessor = &UserValidationCondition{} // UserValidationCondition is a CEL expression that validates a User. type UserValidationCondition struct { Expression string Message string } // GetExpression returns the CEL expression. func (v *UserValidationCondition) GetExpression() string { return v.Expression }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 17:59:05 UTC 2024 - 5.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc/oidc.go
if err := checkValidationRulesEvaluation(evalResult, func(a authenticationcel.ExpressionAccessor) (string, error) { userValidationCondition, ok := a.(*authenticationcel.UserValidationCondition) if !ok { return "", fmt.Errorf("invalid type conversion, expected UserValidationCondition") } return userValidationCondition.Message, nil }); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 09 19:29:33 UTC 2024 - 37.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation.go
continue } seenExpressions.Insert(rule.Expression) compilationResult, err := compileUserCELExpression(compiler, &authenticationcel.UserValidationCondition{ Expression: rule.Expression, Message: rule.Message, }, fldPath.Child("expression")) if err != nil { allErrs = append(allErrs, err) continue }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 31.3K bytes - Viewed (0)