Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for addPV (0.03 sec)

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

    }
    
    func (g *graphPopulator) addPV(obj interface{}) {
    	g.updatePV(nil, obj)
    }
    
    func (g *graphPopulator) updatePV(oldObj, obj interface{}) {
    	pv := obj.(*corev1.PersistentVolume)
    	// TODO: skip add if uid, pvc, and secrets are all identical between old and new
    	g.graph.AddPV(pv)
    }
    
    func (g *graphPopulator) deletePV(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(podVertexType, namespace, name)
    }
    
    // AddPV sets up edges for the following relationships:
    //
    //	secret -> pv
    //
    //	pv -> pvc
    func (g *Graph) AddPV(pv *corev1.PersistentVolume) {
    	start := time.Now()
    	defer func() {
    		graphActionsDuration.WithLabelValues("AddPV").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 {
    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