Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for resourceslices (0.21 sec)

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

    			expect: authorizer.DecisionNoOpinion,
    		},
    		{
    			name:   "allowed list ResourceSlices",
    			attrs:  authorizer.AttributesRecord{User: node0, ResourceRequest: true, Verb: "list", Resource: "resourceslices", APIGroup: "resource.k8s.io"},
    			expect: authorizer.DecisionAllow,
    		},
    		{
    			name:   "allowed watch ResourceSlices",
    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/kubelet/cm/dra/plugin/noderesources.go

    			slice, ok := obj.(*resourceapi.ResourceSlice)
    			if !ok {
    				return
    			}
    			logger.V(5).Info("ResourceSlice add", "slice", klog.KObj(slice))
    			c.queue.Add(slice.DriverName)
    		},
    		UpdateFunc: func(old, new any) {
    			oldSlice, ok := old.(*resourceapi.ResourceSlice)
    			if !ok {
    				return
    			}
    			newSlice, ok := new.(*resourceapi.ResourceSlice)
    			if !ok {
    				return
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 20:12:53 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  3. plugin/pkg/auth/authorizer/node/node_authorizer.go

    }
    
    // authorizeResourceSlice authorizes node requests to ResourceSlice resource.k8s.io/resourceslices
    func (r *NodeAuthorizer) authorizeResourceSlice(nodeName string, attrs authorizer.Attributes) (authorizer.Decision, string, error) {
    	if len(attrs.GetSubresource()) > 0 {
    		klog.V(2).Infof("NODE DENY: '%s' %#v", nodeName, attrs)
    		return authorizer.DecisionNoOpinion, "cannot authorize ResourceSlice subresources", nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 16K bytes
    - Viewed (0)
  4. staging/src/k8s.io/api/resource/v1alpha2/types_swagger_doc_generated.go

    }
    
    func (ResourceSlice) SwaggerDoc() map[string]string {
    	return map_ResourceSlice
    }
    
    var map_ResourceSliceList = map[string]string{
    	"":         "ResourceSliceList is a collection of ResourceSlices.",
    	"metadata": "Standard list metadata",
    	"items":    "Items is the list of node resource capacity objects.",
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  5. pkg/apis/resource/types.go

    // ResourceSlice provides information about available
    // resources on individual nodes.
    type ResourceSlice struct {
    	metav1.TypeMeta
    	// Standard object metadata
    	metav1.ObjectMeta
    
    	// NodeName identifies the node which provides the resources
    	// if they are local to a node.
    	//
    	// A field selector can be used to list only ResourceSlice
    	// objects with a certain node name.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/resource/v1alpha2/generated.proto

    }
    
    // ResourceSliceList is a collection of ResourceSlices.
    message ResourceSliceList {
      // Standard list metadata
      // +optional
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
    
      // Items is the list of node resource capacity objects.
      repeated ResourceSlice items = 2;
    }
    
    // StructuredResourceHandle is the in-tree representation of the allocation result.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 22:07:50 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  7. plugin/pkg/admission/noderestriction/admission.go

    	if a.GetOperation() == admission.Create {
    		slice, ok := a.GetObject().(*resource.ResourceSlice)
    		if !ok {
    			return admission.NewForbidden(a, fmt.Errorf("unexpected type %T", a.GetObject()))
    		}
    
    		if slice.NodeName != nodeName {
    			return admission.NewForbidden(a, errors.New("can only create ResourceSlice with the same NodeName as the requesting node"))
    		}
    	}
    
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/resource/v1alpha2/types.go

    // ResourceSliceList is a collection of ResourceSlices.
    type ResourceSliceList struct {
    	metav1.TypeMeta `json:",inline"`
    	// Standard list metadata
    	// +optional
    	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
    
    	// Items is the list of node resource capacity objects.
    	Items []ResourceSlice `json:"items" protobuf:"bytes,2,rep,name=items"`
    }
    
    // +genclient
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 10:22:35 UTC 2024
    - 30K bytes
    - Viewed (0)
  9. plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go

    			rbacv1helpers.NewRule(ReadUpdate...).Groups(legacyGroup).Resources("pods/finalizers").RuleOrDie(),
    			rbacv1helpers.NewRule(Read...).Groups(resourceGroup).Resources("resourceslices", "resourceclassparameters", "resourceclaimparameters").RuleOrDie(),
    		)
    	}
    	roles = append(roles, rbacv1.ClusterRole{
    		// a role to use for the kube-scheduler
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 19:25:10 UTC 2024
    - 34.4K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/dynamicresources/structuredparameters_test.go

    		})
    	}
    }
    
    type sliceList []*resourceapi.ResourceSlice
    
    func (l sliceList) List(selector labels.Selector) ([]*resourceapi.ResourceSlice, error) {
    	return l, nil
    }
    
    type sliceError string
    
    func (l sliceError) List(selector labels.Selector) ([]*resourceapi.ResourceSlice, error) {
    	return nil, errors.New(string(l))
    }
    
    type claimList []any
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 09:27:01 UTC 2024
    - 34.8K bytes
    - Viewed (0)
Back to top