Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 106 for CEL (0.02 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/openapi/compiling_test.go

    limitations under the License.
    */
    
    package openapi
    
    import (
    	"testing"
    
    	"github.com/google/cel-go/cel"
    	"github.com/google/cel-go/common/types"
    	"github.com/google/cel-go/interpreter"
    
    	"k8s.io/apimachinery/pkg/util/version"
    	apiservercel "k8s.io/apiserver/pkg/cel"
    	"k8s.io/apiserver/pkg/cel/common"
    	"k8s.io/apiserver/pkg/cel/environment"
    	"k8s.io/kube-openapi/pkg/validation/spec"
    )
    
    func TestMultipleTypes(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/metrics/metrics.go

    import (
    	"time"
    
    	"k8s.io/component-base/metrics"
    	"k8s.io/component-base/metrics/legacyregistry"
    )
    
    // TODO(jiahuif) CEL is to be used in multiple components, revise naming when that happens.
    const (
    	namespace = "apiserver"
    	subsystem = "cel"
    )
    
    // Metrics provides access to CEL metrics.
    var Metrics = newCelMetrics()
    
    type CelMetrics struct {
    	compilationTime *metrics.Histogram
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 09 23:50:48 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/authorization/cel/compile.go

    limitations under the License.
    */
    
    package cel
    
    import (
    	"fmt"
    
    	"github.com/google/cel-go/cel"
    	"github.com/google/cel-go/common/types/ref"
    
    	authorizationv1 "k8s.io/api/authorization/v1"
    	"k8s.io/apimachinery/pkg/util/version"
    	apiservercel "k8s.io/apiserver/pkg/cel"
    	"k8s.io/apiserver/pkg/cel/environment"
    )
    
    const (
    	subjectAccessReviewRequestVarName = "request"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 02 20:56:52 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/cel/escaping.go

    limitations under the License.
    */
    
    package cel
    
    import (
    	"regexp"
    
    	"k8s.io/apimachinery/pkg/util/sets"
    )
    
    // celReservedSymbols is a list of RESERVED symbols defined in the CEL lexer.
    // No identifiers are allowed to collide with these symbols.
    // https://github.com/google/cel-spec/blob/master/doc/langdef.md#syntax
    var celReservedSymbols = sets.NewString(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model/types_test.go

    limitations under the License.
    */
    
    package model
    
    import (
    	"testing"
    
    	"github.com/google/cel-go/cel"
    	"github.com/google/cel-go/common/types"
    
    	exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1"
    
    	apiservercel "k8s.io/apiserver/pkg/cel"
    )
    
    func TestTypes_RuleTypesFieldMapping(t *testing.T) {
    	stdEnv, _ := cel.NewEnv()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 15:52:31 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  6. 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)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/values.go

    limitations under the License.
    */
    
    package cel
    
    import (
    	"github.com/google/cel-go/common/types/ref"
    
    	structuralschema "k8s.io/apiextensions-apiserver/pkg/apiserver/schema"
    	"k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model"
    	celopenapi "k8s.io/apiserver/pkg/cel/common"
    )
    
    // UnstructuredToVal converts a Kubernetes unstructured data element to a CEL Val.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 07 02:56:51 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top