Function
getConfigPathForNetworkName
(e *CNIEnv, netName string)
Source from the content-addressed store, hash-verified
| 96 | } |
| 97 | |
| 98 | func getConfigPathForNetworkName(e *CNIEnv, netName string) string { |
| 99 | if netName == DefaultNetworkName || e.Namespace == "" { |
| 100 | return filepath.Join(e.NetconfPath, "nerdctl-"+netName+".conflist") |
| 101 | } |
| 102 | return filepath.Join(e.NetconfPath, e.Namespace, "nerdctl-"+netName+".conflist") |
| 103 | } |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…