Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 227 for CEL (0.04 sec)

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

    limitations under the License.
    */
    
    package unstructured
    
    import (
    	"reflect"
    	"testing"
    
    	"github.com/google/cel-go/cel"
    
    	"k8s.io/apimachinery/pkg/util/version"
    	"k8s.io/apiserver/pkg/cel/environment"
    	"k8s.io/apiserver/pkg/cel/mutation"
    )
    
    func TestTypeProvider(t *testing.T) {
    	for _, tc := range []struct {
    		name          string
    		expression    string
    		expectedValue any
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/types_jsonschema.go

    // ValidationRule describes a validation rule written in the CEL expression language.
    type ValidationRule struct {
    	// Rule represents the expression which will be evaluated by CEL.
    	// ref: https://github.com/google/cel-spec
    	// The Rule is scoped to the location of the x-kubernetes-validations extension in the schema.
    	// The `self` variable in the CEL expression is bound to the scoped value.
    	// Example:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 22:23:23 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/message.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package validating
    
    import (
    	celgo "github.com/google/cel-go/cel"
    	"k8s.io/apiserver/pkg/admission/plugin/cel"
    )
    
    var _ cel.ExpressionAccessor = (*MessageExpressionCondition)(nil)
    
    type MessageExpressionCondition struct {
    	MessageExpression string
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 12 18:58:24 UTC 2024
    - 1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/composition_test.go

    limitations under the License.
    */
    
    package cel
    
    import (
    	"context"
    	"strings"
    	"testing"
    
    	"github.com/google/cel-go/cel"
    
    	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apiserver/pkg/admission"
    	celconfig "k8s.io/apiserver/pkg/apis/cel"
    	"k8s.io/apiserver/pkg/cel/environment"
    )
    
    type testVariable struct {
    	name       string
    	expression string
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  5. pkg/config/validation/validation_istiod.go

    package validation
    
    import (
    	"fmt"
    
    	"github.com/google/cel-go/cel"
    
    	telemetry "istio.io/api/telemetry/v1alpha1"
    )
    
    func validateTelemetryFilter(filter *telemetry.AccessLogging_Filter) error {
    	expr := filter.Expression
    	env, _ := cel.NewEnv()
    	_, issue := env.Parse(expr)
    	if issue.Err() != nil {
    		return fmt.Errorf("must be a valid CEL expression, %w", issue.Err())
    	}
    
    	return nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 05 18:02:37 UTC 2022
    - 1011 bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/cel/value.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package cel
    
    import (
    	"fmt"
    	"reflect"
    	"sync"
    	"time"
    
    	"github.com/google/cel-go/common/types"
    	"github.com/google/cel-go/common/types/ref"
    	"github.com/google/cel-go/common/types/traits"
    )
    
    // EncodeStyle is a hint for string encoding of parsed values.
    type EncodeStyle int
    
    const (
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 20.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/maplist.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package cel
    
    import (
    	"k8s.io/apiextensions-apiserver/pkg/apiserver/schema"
    	"k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model"
    	"k8s.io/apiserver/pkg/cel/common"
    )
    
    // makeMapList returns a queryable interface over the provided x-kubernetes-list-type=map
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 07 02:56:51 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/apis/cel/config.go

    limitations under the License.
    */
    
    package cel
    
    const (
    	// PerCallLimit specify the actual cost limit per CEL validation call
    	// current PerCallLimit gives roughly 0.1 second for each expression validation call
    	PerCallLimit = 1000000
    
    	// RuntimeCELCostBudget is the overall cost budget for runtime CEL validation cost per ValidatingAdmissionPolicyBinding or CustomResource
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 15 03:28:26 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/cel/library/ip_test.go

    package library_test
    
    import (
    	"net/netip"
    	"regexp"
    	"testing"
    
    	"github.com/google/cel-go/cel"
    	"github.com/google/cel-go/common/types"
    	"github.com/google/cel-go/common/types/ref"
    	"github.com/stretchr/testify/require"
    	"k8s.io/apimachinery/pkg/util/sets"
    	apiservercel "k8s.io/apiserver/pkg/cel"
    	"k8s.io/apiserver/pkg/cel/library"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 12:03:07 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model/schemas.go

    limitations under the License.
    */
    
    package model
    
    import (
    	apiservercel "k8s.io/apiserver/pkg/cel"
    	"k8s.io/apiserver/pkg/cel/common"
    
    	"k8s.io/apiextensions-apiserver/pkg/apiserver/schema"
    )
    
    // SchemaDeclType converts the structural schema to a CEL declaration, or returns nil if the
    // structural schema should not be exposed in CEL expressions.
    // Set isResourceRoot to true for the root of a custom resource or embedded resource.
    //
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top