- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for hasPathFrom (0.28 sec)
-
plugin/pkg/auth/authorizer/node/node_authorizer.go
// is allowed by recording a graph edge. return r.authorize(nodeName, sliceVertexType, attrs) } // hasPathFrom returns true if there is a directed path from the specified type/namespace/name to the specified Node func (r *NodeAuthorizer) hasPathFrom(nodeName string, startingType vertexType, startingNamespace, startingName string) (bool, error) { r.graph.lock.RLock() defer r.graph.lock.RUnlock()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:22:55 UTC 2024 - 16K bytes - Viewed (0) -
plugin/pkg/auth/authorizer/node/graph_test.go
{Name: "volume3", VolumeSource: corev1.VolumeSource{ConfigMap: &corev1.ConfigMapVolumeSource{LocalObjectReference: corev1.LocalObjectReference{Name: "cm3"}}}}, }, }, } g.AddPod(pod) if ok, err := a.hasPathFrom(nodeName, configMapVertexType, "ns", "cm1"); err != nil || !ok { t.Errorf("expected path from %s to cm1, got %v, %v", nodeName, ok, err) } } toString := func(id int) string {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 23 23:14:19 UTC 2022 - 12.3K bytes - Viewed (0)