(dag *graph.DAG)
| 35 | ) |
| 36 | |
| 37 | func FindRootVertex(dag *graph.DAG) (*ObjectVertex, error) { |
| 38 | root := dag.Root() |
| 39 | if root == nil { |
| 40 | return nil, fmt.Errorf("root vertex not found: %v", dag) |
| 41 | } |
| 42 | rootVertex, _ := root.(*ObjectVertex) |
| 43 | return rootVertex, nil |
| 44 | } |
| 45 | |
| 46 | func GetGVKName(object client.Object) (*GVKNObjKey, error) { |
| 47 | gvk, err := apiutil.GVKForObject(object, scheme) |
no test coverage detected
searching dependent graphs…