mirror of
https://github.com/zap-proto/zip.git
synced 2026-10-19 15:38:57 +00:00
SO_PEERCRED names the process; the kubelet's cgroup names the pod it was placed in. A server on a socket shared across pods needs the second to scope what the first may read, and neither is a value the caller states.
7 lines
127 B
Go
7 lines
127 B
Go
//go:build !linux
|
|
|
|
package zip
|
|
|
|
// PodUID is "" where there is no cgroup to read.
|
|
func (p *Peer) PodUID() string { return "" }
|