Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for ResourceRequest (0.15 sec)

  1. plugin/pkg/auth/authorizer/node/node_authorizer_test.go

    	}{
    		{
    			name:   "allowed configmap",
    			attrs:  authorizer.AttributesRecord{User: node0, ResourceRequest: true, Verb: "get", Resource: "configmaps", Name: "configmap0-pod0-node0", Namespace: "ns0"},
    			expect: authorizer.DecisionAllow,
    		},
    		{
    			name:   "allowed secret via pod",
    			attrs:  authorizer.AttributesRecord{User: node0, ResourceRequest: true, Verb: "get", Resource: "secrets", Name: "secret0-pod0-node0", Namespace: "ns0"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  2. pkg/registry/authorization/subjectaccessreview/rest_test.go

    			err:      errors.New("myerror"),
    			expectedAttrs: authorizer.AttributesRecord{
    				User:            &user.DefaultInfo{Name: "bob"},
    				Verb:            "get",
    				Path:            "/mypath",
    				ResourceRequest: false,
    			},
    			expectedStatus: authorizationapi.SubjectAccessReviewStatus{
    				Allowed:         false,
    				Reason:          "myreason",
    				EvaluationError: "myerror",
    			},
    		},
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 25 16:06:18 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  3. pkg/registry/authorization/util/helpers_test.go

    		// Fields we set in ResourceAttributesFrom
    		"User",
    		"Verb",
    		"Namespace",
    		"APIGroup",
    		"APIVersion",
    		"Resource",
    		"Subresource",
    		"Name",
    		"ResourceRequest",
    
    		// Fields we set in NonResourceAttributesFrom
    		"User",
    		"ResourceRequest",
    		"Path",
    		"Verb",
    	)
    	reflect.TypeOf(authorizer.AttributesRecord{}).FieldByNameFunc(func(name string) bool {
    		if !knownAttributesRecordFieldNames.Has(name) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 25 16:06:18 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/errors_test.go

    `, authorizer.AttributesRecord{User: u, Verb: "get", Resource: "pod", ResourceRequest: true}, "", "application/json"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 29 07:45:20 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  5. pkg/apis/resource/validation/validation_resourceclaimparameters_test.go

    					{
    						DriverName: goodName,
    						Requests: []resource.ResourceRequest{
    							{
    								ResourceRequestModel: resource.ResourceRequestModel{
    									NamedResources: &resource.NamedResourcesRequest{Selector: "true"},
    								},
    							},
    						},
    					},
    					{
    						DriverName: badName,
    						Requests: []resource.ResourceRequest{
    							{
    								ResourceRequestModel: resource.ResourceRequestModel{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:21:16 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/filters/authorization_test.go

    		},
    
    		"resource": {
    			Verb: "POST",
    			Path: "/api/v1/nodes/mynode",
    			ExpectedAttributes: &authorizer.AttributesRecord{
    				Verb:            "create",
    				Path:            "/api/v1/nodes/mynode",
    				ResourceRequest: true,
    				Resource:        "nodes",
    				APIVersion:      "v1",
    				Name:            "mynode",
    			},
    		},
    		"namespaced resource": {
    			Verb: "PUT",
    			Path: "/api/v1/namespaces/myns/pods/mypod",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 5K bytes
    - Viewed (0)
  7. pkg/registry/authorization/util/helpers.go

    		Namespace:       in.Namespace,
    		APIGroup:        in.Group,
    		APIVersion:      matchAllVersionIfEmpty(in.Version),
    		Resource:        in.Resource,
    		Subresource:     in.Subresource,
    		Name:            in.Name,
    		ResourceRequest: true,
    	}
    }
    
    // NonResourceAttributesFrom combines the API object information and the user.Info from the context to build a full authorizer.AttributesRecord for non resource access
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 25 16:06:18 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  8. plugin/pkg/admission/gc/gc_admission.go

    			APIVersion:      attributes.GetResource().Version,
    			Resource:        attributes.GetResource().Resource,
    			Subresource:     attributes.GetSubresource(),
    			Name:            attributes.GetName(),
    			ResourceRequest: true,
    			Path:            "",
    		}
    		decision, reason, err := a.authorizer.Authorize(ctx, deleteAttributes)
    		if decision != authorizer.DecisionAllow {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 05 02:24:38 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/authorization/authorizer/interfaces.go

    	User            user.Info
    	Verb            string
    	Namespace       string
    	APIGroup        string
    	APIVersion      string
    	Resource        string
    	Subresource     string
    	Name            string
    	ResourceRequest bool
    	Path            string
    }
    
    func (a AttributesRecord) GetUser() user.Info {
    	return a.User
    }
    
    func (a AttributesRecord) GetVerb() string {
    	return a.Verb
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 06 14:36:14 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  10. pkg/apis/resource/v1alpha2/zz_generated.conversion.go

    	}
    	if err := s.AddGeneratedConversionFunc((*v1alpha2.ResourceRequest)(nil), (*resource.ResourceRequest)(nil), func(a, b interface{}, scope conversion.Scope) error {
    		return Convert_v1alpha2_ResourceRequest_To_resource_ResourceRequest(a.(*v1alpha2.ResourceRequest), b.(*resource.ResourceRequest), scope)
    	}); err != nil {
    		return err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 103.6K bytes
    - Viewed (0)
Back to top