Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 726 for Decisions (0.18 sec)

  1. pkg/test/framework/resource/flags.go

    	}
    
    	if s.Revision != "" {
    		if s.Revisions != nil {
    			return fmt.Errorf("cannot use --istio.test.revision and --istio.test.revisions at the same time," +
    				" --istio.test.revisions will take precedence and --istio.test.revision will be ignored")
    		}
    		// use Revision as the sole revision in RevVerMap
    		s.Revisions = RevVerMap{
    			s.Revision: "",
    		}
    	} else if s.Revisions != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 19:04:51 UTC 2024
    - 14K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/library/authz.go

    }
    
    func decisionAllowed(arg ref.Val) ref.Val {
    	decision, ok := arg.(decisionVal)
    	if !ok {
    		return types.MaybeNoSuchOverloadErr(arg)
    	}
    
    	return types.Bool(decision.authDecision == authorizer.DecisionAllow)
    }
    
    func decisionReason(arg ref.Val) ref.Val {
    	decision, ok := arg.(decisionVal)
    	if !ok {
    		return types.MaybeNoSuchOverloadErr(arg)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  3. pkg/registry/admissionregistration/validatingadmissionpolicy/authz_test.go

    			auth: func(ctx context.Context, a authorizer.Attributes) (authorized authorizer.Decision, reason string, err error) {
    				return authorizer.DecisionDeny, "", nil
    			},
    		},
    		{
    			name:     "authorized",
    			userInfo: &user.DefaultInfo{Groups: []string{user.AllAuthenticated}},
    			auth: func(ctx context.Context, a authorizer.Attributes) (authorized authorizer.Decision, reason string, err error) {
    				if a.GetResource() == "replicalimits" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 21:29:56 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  4. plugin/pkg/auth/authorizer/node/node_authorizer_test.go

    		User      user.Info
    		Secret    string
    		ConfigMap string
    		Decision  authorizer.Decision
    	}{
    		{User: node1, Decision: authorizer.DecisionAllow, Secret: "node1-only"},
    		{User: node1, Decision: authorizer.DecisionAllow, Secret: "node1-node2-only"},
    		{User: node1, Decision: authorizer.DecisionAllow, Secret: "shared-all"},
    
    		{User: node2, Decision: authorizer.DecisionNoOpinion, Secret: "node1-only"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/authorization/authorizer/interfaces.go

    	GetPath() string
    }
    
    // Authorizer makes an authorization decision based on information gained by making
    // zero or more calls to methods of the Attributes interface.  It returns nil when an action is
    // authorized, otherwise it returns an error.
    type Authorizer interface {
    	Authorize(ctx context.Context, a Attributes) (authorized Decision, reason string, err error)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 06 14:36:14 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/authorization/authorizerfactory/builtin_test.go

    	aaa := NewAlwaysAllowAuthorizer()
    	if decision, _, _ := aaa.Authorize(context.Background(), nil); decision != authorizer.DecisionAllow {
    		t.Errorf("AlwaysAllowAuthorizer.Authorize did not authorize successfully.")
    	}
    }
    
    func TestNewAlwaysDenyAuthorizer(t *testing.T) {
    	ada := NewAlwaysDenyAuthorizer()
    	if decision, _, _ := ada.Authorize(context.Background(), nil); decision == authorizer.DecisionAllow {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 24 15:14:54 UTC 2019
    - 1.8K bytes
    - Viewed (0)
  7. istioctl/pkg/tag/revision.go

    		tagLabel := hook.GetLabels()[IstioTagLabel]
    		ri, revPresent := revisions[rev]
    		if revPresent {
    			if tagLabel != "" {
    				ri.Webhooks = append(ri.Webhooks, &MutatingWebhookConfigInfo{
    					Name:     hook.Name,
    					Revision: rev,
    					Tag:      tagLabel,
    				})
    			}
    		} else {
    			revisions[rev] = &RevisionDescription{
    				IstioOperatorCRs: []*IstioOperatorCRInfo{},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Jan 28 13:16:05 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  8. pkg/controller/history/controller_history_test.go

    		for i := range test.revisions {
    			informer.Informer().GetIndexer().Add(test.revisions[i])
    		}
    
    		history := NewHistory(client, informer.Lister())
    		revisions, err := history.ListControllerRevisions(test.parent, test.selector)
    		if err != nil {
    			t.Errorf("%s: %s", test.name, err)
    		}
    		got := make(map[string]bool)
    		for i := range revisions {
    			got[revisions[i].Name] = true
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 21 13:31:28 UTC 2023
    - 49.1K bytes
    - Viewed (0)
  9. pkg/controller/history/controller_history.go

    // FindEqualRevisions returns all ControllerRevisions in revisions that are equal to needle using EqualRevision as the
    // equality test. The returned slice preserves the order of revisions.
    func FindEqualRevisions(revisions []*apps.ControllerRevision, needle *apps.ControllerRevision) []*apps.ControllerRevision {
    	var eq []*apps.ControllerRevision
    	for i := range revisions {
    		if EqualRevision(revisions[i], needle) {
    			eq = append(eq, revisions[i])
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 05 13:33:52 UTC 2021
    - 18.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/endpoints/filters/authorization_test.go

    		}
    	}
    }
    
    type fakeAuthorizer struct {
    	decision authorizer.Decision
    	reason   string
    	err      error
    }
    
    func (f fakeAuthorizer) Authorize(ctx context.Context, a authorizer.Attributes) (authorizer.Decision, string, error) {
    	return f.decision, f.reason, f.err
    }
    
    func TestAuditAnnotation(t *testing.T) {
    	testcases := map[string]struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 5K bytes
    - Viewed (0)
Back to top