- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for OptionalTypes (0.33 sec)
-
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) -
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) -
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)