Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 148 for Decisions (0.14 sec)

  1. plugin/pkg/admission/certificates/ctbattest/admission_test.go

    }
    
    type fakeAuthorizer struct {
    	t           *testing.T
    	verb        string
    	allowedName string
    	decision    authorizer.Decision
    	err         error
    }
    
    func (f fakeAuthorizer) Authorize(ctx context.Context, a authorizer.Attributes) (authorizer.Decision, string, error) {
    	if f.err != nil {
    		return f.decision, "forced error", f.err
    	}
    	if a.GetVerb() != f.verb {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. plugin/pkg/auth/authorizer/node/node_authorizer.go

    	}
    	return nil, nil, false, nil
    }
    
    func (r *NodeAuthorizer) Authorize(ctx context.Context, attrs authorizer.Attributes) (authorizer.Decision, string, error) {
    	nodeName, isNode := r.identifier.NodeIdentity(attrs.GetUser())
    	if !isNode {
    		// reject requests from non-nodes
    		return authorizer.DecisionNoOpinion, "", nil
    	}
    	if len(nodeName) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 16K bytes
    - Viewed (0)
  3. pkg/test/framework/components/istio/configmap.go

    	ctx       resource.Context
    	namespace string
    	mu        sync.Mutex
    	revisions resource.RevVerMap
    }
    
    type meshConfig struct {
    	configMap
    	meshConfig *meshconfig.MeshConfig
    }
    
    type injectConfig struct {
    	configMap
    	injectConfig *inject.Config
    	values       *inject.ValuesConfig
    }
    
    func newConfigMap(ctx resource.Context, namespace string, revisions resource.RevVerMap) *configMap {
    	return &configMap{
    		ctx:       ctx,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook_v1beta1_test.go

    			// Allow all and see if we get an error.
    			service.Allow()
    			decision, _, err := wh.Authorize(context.Background(), attr)
    			if tt.wantAuth {
    				if decision != authorizer.DecisionAllow {
    					t.Errorf("expected successful authorization")
    				}
    			} else {
    				if decision == authorizer.DecisionAllow {
    					t.Errorf("expected failed authorization")
    				}
    			}
    			if tt.wantErr {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 22:41:27 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  5. tools/bug-report/pkg/bugreport/bugreport.go

    	defer logRuntime(time.Now(), "Done getting control plane revisions/versions")
    
    	text := ""
    	text += fmt.Sprintf("CLI version:\n%s\n\n", version.Info.LongForm())
    
    	revisions := getIstioRevisions(resources)
    	istioVersions, proxyVersions := getIstioVersions(ctx, istioNamespace, revisions)
    	text += "The following Istio control plane revisions/versions were found in the cluster:\n"
    	for rev, ver := range istioVersions {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 05 20:57:29 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/filter_test.go

    			authorizerResult: authorizerResult{decision: authorizer.DecisionAllow, reason: "", err: nil},
    		},
    		defaultResult: authorizerResult{decision: authorizer.DecisionDeny, reason: "", err: nil},
    	}
    }
    
    type fakeAuthorizer struct {
    	match         *authorizerMatch
    	defaultResult authorizerResult
    }
    
    type authorizerResult struct {
    	decision authorizer.Decision
    	reason   string
    	err      error
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 40.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook.go

    // encounter an error. We are failing open now to preserve backwards compatible
    // behavior.
    func (w *WebhookAuthorizer) Authorize(ctx context.Context, attr authorizer.Attributes) (decision authorizer.Decision, reason string, err error) {
    	r := &authorizationv1.SubjectAccessReview{}
    	if user := attr.GetUser(); user != nil {
    		r.Spec = authorizationv1.SubjectAccessReviewSpec{
    			User:   user.GetName(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:01:15 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  8. pkg/controller/statefulset/stateful_set_test.go

    		}
    	}
    
    	// It should not adopt revisions.
    	revisions, err := ssh.ListControllerRevisions(set, selector)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if got, want := len(revisions), 1; got != want {
    		t.Errorf("len(revisions) = %v, want %v", got, want)
    	}
    	for _, revision := range revisions {
    		if len(revision.OwnerReferences) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  9. tests/integration/pilot/ingress_test.go

    			inject := false
    			if t.Settings().Compatibility {
    				inject = true
    			}
    			injectLabel := `sidecar.istio.io/inject: "true"`
    			if t.Settings().Revisions.Default() != "" {
    				injectLabel = fmt.Sprintf(`istio.io/rev: "%v"`, t.Settings().Revisions.Default())
    			}
    
    			templateParams := map[string]string{
    				"imagePullSecret": t.Settings().Image.PullSecretNameOrFail(t),
    				"injectLabel":     injectLabel,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  10. pkg/test/framework/components/istio/kube.go

    		return nil, err
    	}
    
    	// Populate the revisions for the control plane.
    	var revisions resource.RevVerMap
    	if !cfg.DeployIstio {
    		// Using a pre-installed control plane. Get the revisions from the
    		// command-line.
    		revisions = ctx.Settings().Revisions
    	} else if len(iop.Spec.Revision) > 0 {
    		// Use revisions from the default control plane operator.
    		revisions = resource.RevVerMap{
    			iop.Spec.Revision: "",
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 31.1K bytes
    - Viewed (0)
Back to top