Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for Validation (1.2 sec)

  1. pkg/config/validation/validation.go

    }
    
    var _ error = Validation{}
    
    // WrapError turns an error into a Validation
    func WrapError(e error) Validation {
    	return Validation{Err: e}
    }
    
    // ValidateFunc defines a validation func for an API proto.
    type ValidateFunc func(config config.Config) (Warning, error)
    
    // IsValidateFunc indicates whether there is a validation function with the given name.
    func IsValidateFunc(name string) bool {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
  2. pkg/apis/admissionregistration/validation/validation_test.go

    		},
    
    		expectedError: `spec.validations: Required value: validations or auditAnnotations must contain at least one item`,
    	}, {
    		name: "Invalid Validations Reason",
    		config: &admissionregistration.ValidatingAdmissionPolicy{
    			ObjectMeta: metav1.ObjectMeta{
    				Name: "config",
    			},
    			Spec: admissionregistration.ValidatingAdmissionPolicySpec{
    				Validations: []admissionregistration.Validation{{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 147.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    				type: string
    				minLength: 5
    				x-kubernetes-validations:
    				- rule: self == "baz"
    				  message: gotta be baz
    			`),
    			oldObj:            "unchanged",
    			newObj:            "unchanged",
    			runtimeCostBudget: 1,
    			errors: []string{
    				`validation failed due to running out of cost budget, no further validation rules will be run`,
    			},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/api/admissionregistration/v1alpha1/generated.pb.go

    func (m *Validation) Reset()      { *m = Validation{} }
    func (*Validation) ProtoMessage() {}
    func (*Validation) Descriptor() ([]byte, []int) {
    	return fileDescriptor_2c49182728ae0af5, []int{15}
    }
    func (m *Validation) XXX_Unmarshal(b []byte) error {
    	return m.Unmarshal(b)
    }
    func (m *Validation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	b = b[:cap(b)]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 117.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc/oidc_test.go

    				"aud": "my-client",
    				"username": "jane",
    				"exp": %d
    			}`, valid.Unix()),
    			wantErr: `oidc: error evaluating user info validation rule: validation expression '!user.username.startsWith('system:')' failed: username cannot used reserved system: prefix`,
    		},
    		{
    			name: "user validation rule fails for user.groups",
    			options: Options{
    				JWTAuthenticator: apiserver.JWTAuthenticator{
    					Issuer: apiserver.Issuer{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 97.7K bytes
    - Viewed (0)
  6. api/openapi-spec/v3/apis__admissionregistration.k8s.io__v1beta1_openapi.json

    "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. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 235.7K bytes
    - Viewed (0)
  7. api/openapi-spec/v3/apis__admissionregistration.k8s.io__v1alpha1_openapi.json

    "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. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 235.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/admissionregistration/v1beta1/generated.pb.go

    func (m *Validation) Reset()      { *m = Validation{} }
    func (*Validation) ProtoMessage() {}
    func (*Validation) Descriptor() ([]byte, []int) {
    	return fileDescriptor_7f7c65a4f012fb19, []int{22}
    }
    func (m *Validation) XXX_Unmarshal(b []byte) error {
    	return m.Unmarshal(b)
    }
    func (m *Validation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	b = b[:cap(b)]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 187.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/admissionregistration/v1/generated.pb.go

    func (m *Validation) Reset()      { *m = Validation{} }
    func (*Validation) ProtoMessage() {}
    func (*Validation) Descriptor() ([]byte, []int) {
    	return fileDescriptor_3205c7dc5bf0c9bf, []int{24}
    }
    func (m *Validation) XXX_Unmarshal(b []byte) error {
    	return m.Unmarshal(b)
    }
    func (m *Validation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	b = b[:cap(b)]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 200.5K bytes
    - Viewed (0)
  10. api/openapi-spec/v3/apis__apiextensions.k8s.io__v1_openapi.json

    "description": "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 rule, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset....
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 178.6K bytes
    - Viewed (0)
Back to top