Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 35 for optionalOldSelf (0.19 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/validation_test.go

    							Type:    "string",
    							Default: jsonPtr("default"),
    							XValidations: apiextensions.ValidationRules{
    								{
    									Rule:            "oldSelf.hasValue()",
    									OptionalOldSelf: ptr.To(true),
    									Message:         "foobarErrorMessage",
    								},
    							},
    						},
    					},
    				},
    			},
    			errors: []string{"foobarErrorMessage"},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/testdata/HEAD/apiextensions.k8s.io.v1.CustomResourceDefinition.yaml

            x-kubernetes-preserve-unknown-fields: true
            x-kubernetes-validations:
            - fieldPath: fieldPathValue
              message: messageValue
              messageExpression: messageExpressionValue
              optionalOldSelf: true
              reason: reasonValue
              rule: ruleValue
        selectableFields:
        - jsonPath: jsonPathValue
        served: true
        storage: true
        subresources:
          scale:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/testdata/HEAD/apiextensions.k8s.io.v1.CustomResourceDefinition.json

    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/validation.go

    				allErrs = append(allErrs, celErrs...)
    
    				if len(celErrs) == 0 && utilfeature.DefaultFeatureGate.Enabled(apiextensionsfeatures.CRDValidationRatcheting) {
    					// If ratcheting is enabled some CEL rules may use optionalOldSelf
    					// For such rules the above validation is not sufficient for
    					// determining if the default value is a valid value to introduce
    					// via create or uncorrelated update.
    					//
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 22:34:13 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/zz_generated.deepcopy.go

    	*out = *in
    	if in.Reason != nil {
    		in, out := &in.Reason, &out.Reason
    		*out = new(FieldValueErrorReason)
    		**out = **in
    	}
    	if in.OptionalOldSelf != nil {
    		in, out := &in.OptionalOldSelf, &out.OptionalOldSelf
    		*out = new(bool)
    		**out = **in
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidationRule.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/zz_generated.deepcopy.go

    	*out = *in
    	if in.Reason != nil {
    		in, out := &in.Reason, &out.Reason
    		*out = new(FieldValueErrorReason)
    		**out = **in
    	}
    	if in.OptionalOldSelf != nil {
    		in, out := &in.OptionalOldSelf, &out.OptionalOldSelf
    		*out = new(bool)
    		**out = **in
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidationRule.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation.go

    	compResults := make([]CompilationResult, len(celRules))
    	maxCardinality := maxCardinality(declType.MinSerializedSize)
    	for i, rule := range celRules {
    		ruleEnvSet := oldSelfEnvSet
    		if rule.OptionalOldSelf != nil && *rule.OptionalOldSelf {
    			ruleEnvSet = optionalOldSelfEnvSet
    		}
    		compResults[i] = compileRule(s, rule, ruleEnvSet, envLoader, estimator, maxCardinality, perCallLimit)
    	}
    
    	return compResults, 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)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/generated.proto

      // `transition rule`.
      //
      // By default, the `oldSelf` variable is the same type as `self`.
      // When `optionalOldSelf` is true, the `oldSelf` variable is a CEL optional
      //  variable whose value() is the same type as `self`.
      // See the documentation for the `optionalOldSelf` field for details.
      //
      // Transition rules by default are applied only on UPDATE requests and are
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test.go

    							Type: "string",
    							XValidations: []apiextensionsv1.ValidationRule{
    								{
    									Rule:            "!oldSelf.hasValue()",
    									Message:         "oldSelf must be null",
    									OptionalOldSelf: ptr(true),
    								},
    							},
    						},
    					},
    				}},
    
    				applyPatchOperation{
    					"create instance passes since oldself is null",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 59.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/zz_generated.deepcopy.go

    	*out = *in
    	if in.Reason != nil {
    		in, out := &in.Reason, &out.Reason
    		*out = new(FieldValueErrorReason)
    		**out = **in
    	}
    	if in.OptionalOldSelf != nil {
    		in, out := &in.OptionalOldSelf, &out.OptionalOldSelf
    		*out = new(bool)
    		**out = **in
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidationRule.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 21.5K bytes
    - Viewed (0)
Back to top