Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for addResourceSlice (0.15 sec)

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

    		return
    	}
    	g.graph.DeleteVolumeAttachment(attachment.Name)
    }
    
    func (g *graphPopulator) addResourceSlice(obj interface{}) {
    	slice, ok := obj.(*resourcev1alpha2.ResourceSlice)
    	if !ok {
    		klog.Infof("unexpected type %T", obj)
    		return
    	}
    	g.graph.AddResourceSlice(slice.Name, slice.NodeName)
    }
    
    func (g *graphPopulator) deleteResourceSlice(obj interface{}) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. plugin/pkg/auth/authorizer/node/graph.go

    	defer g.lock.Unlock()
    	g.deleteVertex_locked(vaVertexType, "", name)
    }
    
    // AddResourceSlice sets up edges for the following relationships:
    //
    //	node resource slice -> node
    func (g *Graph) AddResourceSlice(sliceName, nodeName string) {
    	start := time.Now()
    	defer func() {
    		graphActionsDuration.WithLabelValues("AddResourceSlice").Observe(time.Since(start).Seconds())
    	}()
    	g.lock.Lock()
    	defer g.lock.Unlock()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  3. plugin/pkg/auth/authorizer/node/node_authorizer_test.go

    		p.addPod(pod)
    	}
    	for _, pv := range pvs {
    		p.addPV(pv)
    	}
    	for _, attachment := range attachments {
    		p.addVolumeAttachment(attachment)
    	}
    	for _, slice := range slices {
    		p.addResourceSlice(slice)
    	}
    }
    
    func randomSubset(a, b int) []int {
    	if b < a {
    		b = a
    	}
    	return rand.Perm(b)[:a]
    }
    
    // generate creates sample pods and persistent volumes based on the provided options.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 40.5K bytes
    - Viewed (0)
Back to top