Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for OptionalTypes (0.39 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/mutation/env_test.go

    // it fatally fails the test if the env fails to set up.
    func mustCreateEnvWithOptional(t testing.TB, envOptions ...cel.EnvOption) *cel.Env {
    	return mustCreateEnv(t, append(envOptions, cel.OptionalTypes())...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/environment/base.go

    		EnvOptions: []cel.EnvOption{
    			library.Authz(),
    		},
    	},
    	{
    		IntroducedVersion: version.MajorMinor(1, 28),
    		EnvOptions: []cel.EnvOption{
    			cel.CrossTypeNumericComparisons(true),
    			cel.OptionalTypes(),
    			library.Quantity(),
    		},
    	},
    	// add the new validator in 1.29
    	{
    		IntroducedVersion: version.MajorMinor(1, 29),
    		EnvOptions: []cel.EnvOption{
    			cel.ASTValidators(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 15:51:08 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/library/quantity_test.go

    	"k8s.io/apiserver/pkg/cel/library"
    )
    
    func testQuantity(t *testing.T, expr string, expectResult ref.Val, expectRuntimeErrPattern string, expectCompileErrs []string) {
    	env, err := cel.NewEnv(
    		cel.OptionalTypes(),
    		ext.Strings(),
    		library.URLs(),
    		library.Regex(),
    		library.Lists(),
    		library.Quantity(),
    		library.Format(),
    	)
    	if err != nil {
    		t.Fatalf("%v", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/cel/library/cost_test.go

    	env, err := cel.NewEnv(
    		ext.Strings(ext.StringsVersion(2)),
    		URLs(),
    		Regex(),
    		Lists(),
    		Authz(),
    		Quantity(),
    		ext.Sets(),
    		IP(),
    		CIDR(),
    		Format(),
    		cel.OptionalTypes(),
    		// cel-go v0.17.7 introduced CostEstimatorOptions.
    		// Previous the presence has a cost of 0 but cel fixed it to 1. We still set to 0 here to avoid breaking changes.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/generated.proto

      // unwrap it after checking using `oldSelf.value()`. Check the CEL
      // documentation for Optional types for more information:
      // https://pkg.go.dev/github.com/google/cel-go/cel#OptionalTypes
      //
      // May not be set unless `oldSelf` is used in `rule`.
      //
      // +featureGate=CRDValidationRatcheting
      // +optional
      optional bool optionalOldSelf = 6;
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/generated.proto

      // unwrap it after checking using `oldSelf.value()`. Check the CEL
      // documentation for Optional types for more information:
      // https://pkg.go.dev/github.com/google/cel-go/cel#OptionalTypes
      //
      // May not be set unless `oldSelf` is used in `rule`.
      //
      // +featureGate=CRDValidationRatcheting
      // +optional
      optional bool optionalOldSelf = 6;
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/generated/openapi/zz_generated.openapi.go

    							Type:        []string{"boolean"},
    							Format:      "",
    						},
    					},
    				},
    				Required: []string{"rule"},
    			},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:07:17 UTC 2024
    - 329.7K bytes
    - Viewed (0)
  8. api/openapi-spec/v3/apis__apiextensions.k8s.io__v1_openapi.json

                "type": "boolean"
              },
              "reason": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 178.6K bytes
    - Viewed (0)
  9. pkg/generated/openapi/zz_generated.openapi.go

    							Type:        []string{"boolean"},
    							Format:      "",
    						},
    					},
    				},
    				Required: []string{"rule"},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 18:37:07 UTC 2024
    - 3M bytes
    - Viewed (0)
  10. api/openapi-spec/swagger.json

              "type": "boolean"
            },
            "reason": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 18:37:07 UTC 2024
    - 3.1M bytes
    - Viewed (0)
Back to top