Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 12 of 12 for optionalOldSelf (0.14 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/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
    - 41.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation.go

    			continue
    		}
    		if compiled.Program == nil {
    			// rule is empty
    			continue
    		}
    
    		// If ratcheting is enabled, allow rule with oldSelf to evaluate
    		// when `optionalOldSelf` is set to true
    		optionalOldSelfRule := ptr.Deref(rule.OptionalOldSelf, false)
    		if compiled.UsesOldSelf && oldObj == nil {
    			// transition rules are evaluated only if there is a comparable existing value
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 18:21:31 UTC 2024
    - 32.2K bytes
    - Viewed (0)
Back to top