Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for addVolumeAttachment (0.17 sec)

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

    		AddFunc:    g.addPV,
    		UpdateFunc: g.updatePV,
    		DeleteFunc: g.deletePV,
    	})
    
    	attachHandler, _ := attachments.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{
    		AddFunc:    g.addVolumeAttachment,
    		UpdateFunc: g.updateVolumeAttachment,
    		DeleteFunc: g.deleteVolumeAttachment,
    	})
    
    	synced := []cache.InformerSynced{
    		podHandler.HasSynced, pvsHandler.HasSynced, attachHandler.HasSynced,
    	}
    
    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(pvVertexType, "", name)
    }
    
    // AddVolumeAttachment sets up edges for the following relationships:
    //
    //	volume attachment -> node
    func (g *Graph) AddVolumeAttachment(attachmentName, nodeName string) {
    	start := time.Now()
    	defer func() {
    		graphActionsDuration.WithLabelValues("AddVolumeAttachment").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 := &graphPopulator{}
    	p.graph = graph
    	for _, pod := range pods {
    		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]
    }
    
    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