mirror of
https://github.com/cloudnativelabs/kube-router.git
synced 2025-09-28 19:41:04 +02:00
feat(linux_networking.go): add more error info
Direct people to a potentially missing hostPID attribute in their kube-router deployment if they are getting a no such file or directory message.
This commit is contained in:
parent
eb2628874c
commit
eb462bae08
@ -625,7 +625,9 @@ func (ln *linuxNetworking) findIfaceLinkForPid(pid int) (int, error) {
|
||||
sysFSNetClassRelPath)
|
||||
entries, err := os.ReadDir(ifacesPath)
|
||||
if err != nil {
|
||||
klog.Warningf("could not list: %s due to: %v", ifacesPath, entries)
|
||||
klog.Warningf("Could not list: %s due to: %v", ifacesPath, err)
|
||||
klog.Warning("If above error was 'no such file or directory' it may be that you haven't enabled " +
|
||||
"'hostPID=true' in your kube-router deployment")
|
||||
return
|
||||
}
|
||||
var sb strings.Builder
|
||||
|
Loading…
x
Reference in New Issue
Block a user