Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for VersionedParams (0.3 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1/customresourcedefinition.go

    	result = &v1.CustomResourceDefinition{}
    	err = c.client.Get().
    		Resource("customresourcedefinitions").
    		Name(name).
    		VersionedParams(&options, scheme.ParameterCodec).
    		Do(ctx).
    		Into(result)
    	return
    }
    
    // List takes label and field selectors, and returns the list of CustomResourceDefinitions that match those selectors.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 10:52:54 UTC 2024
    - 12K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1/customresourcedefinition.go

    	result = &v1beta1.CustomResourceDefinition{}
    	err = c.client.Get().
    		Resource("customresourcedefinitions").
    		Name(name).
    		VersionedParams(&options, scheme.ParameterCodec).
    		Do(ctx).
    		Into(result)
    	return
    }
    
    // List takes label and field selectors, and returns the list of CustomResourceDefinitions that match those selectors.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 10:52:54 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1/example.go

    	result = &v1.Example{}
    	err = c.client.Get().
    		Namespace(c.ns).
    		Resource("examples").
    		Name(name).
    		VersionedParams(&options, scheme.ParameterCodec).
    		Do(ctx).
    		Into(result)
    	return
    }
    
    // List takes label and field selectors, and returns the list of Examples that match those selectors.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 10:52:54 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/admission_test.go

    	matchResource schema.GroupVersionResource,
    	versionedAttr *admission.VersionedAttributes,
    	versionedParams runtime.Object,
    	namespace *v1.Namespace,
    	runtimeCELCostBudget int64,
    	authz authorizer.Authorizer,
    ) validating.ValidateResult {
    	return f(
    		ctx,
    		matchResource,
    		versionedAttr,
    		versionedParams,
    		namespace,
    		runtimeCELCostBudget,
    		authz,
    	)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 25 01:39:01 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/validator.go

    		if !matchResults.Matches {
    			return ValidateResult{}
    		}
    	}
    
    	optionalVars := cel.OptionalVariableBindings{VersionedParams: versionedParams, Authorizer: authz}
    	expressionOptionalVars := cel.OptionalVariableBindings{VersionedParams: versionedParams}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 23:31:44 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/interface.go

    }
    
    // OptionalVariableBindings provides expression bindings for optional CEL variables.
    type OptionalVariableBindings struct {
    	// VersionedParams provides the "params" variable binding. This variable binding may
    	// be set to nil even when OptionalVariableDeclarations.HashParams is set to true.
    	VersionedParams runtime.Object
    	// Authorizer provides the authorizer used for the "authorizer" and
    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/apiserver/pkg/admission/plugin/policy/validating/interface.go

    	Validate(ctx context.Context, matchedResource schema.GroupVersionResource, versionedAttr *admission.VersionedAttributes, versionedParams runtime.Object, namespace *corev1.Namespace, runtimeCELCostBudget int64, authz authorizer.Authorizer) ValidateResult
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 22 17:47:18 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. operator/pkg/verifier/verifier.go

    		}
    		switch kind {
    		case "Deployment":
    			deployment := &appsv1.Deployment{}
    			err = info.Client.
    				Get().
    				Resource(kinds).
    				Namespace(namespace).
    				Name(name).
    				VersionedParams(&metav1.GetOptions{}, scheme.ParameterCodec).
    				Do(context.TODO()).
    				Into(deployment)
    			if err != nil {
    				v.reportFailure(kind, name, namespace, err)
    				return err
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 19:23:44 UTC 2024
    - 15K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/filter_test.go

    			if err != nil {
    				t.Fatalf("unexpected error on conversion: %v", err)
    			}
    
    			optionalVars := OptionalVariableBindings{VersionedParams: tc.params, Authorizer: tc.authorizer}
    			ctx := context.TODO()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 40.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/validator_test.go

    var _ matchconditions.Matcher = &fakeCELMatcher{}
    
    type fakeCELMatcher struct {
    	error   error
    	matches bool
    }
    
    func (f *fakeCELMatcher) Match(ctx context.Context, versionedAttr *admission.VersionedAttributes, versionedParams runtime.Object, authz authorizer.Authorizer) matchconditions.MatchResult {
    	return matchconditions.MatchResult{Matches: f.matches, FailedConditionName: "placeholder", Error: f.error}
    }
    
    func TestValidate(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 24.7K bytes
    - Viewed (0)
Back to top