Documentation
¶
Overview ¶
Package kubeconfigpipe replays one bounded pipe-backed kubeconfig through a fresh anonymous pipe for each child command without placing the credential in argv, the environment, or a regular file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLifecycleFailure ¶
IsLifecycleFailure reports failures where command output cannot be trusted: process cleanup, replay completion, or inherited-I/O WaitDelay expiry.
func Run ¶
Run executes one configured command inside the platform process-tree boundary. When replay is non-nil, it attaches a fresh pipe-backed kubeconfig. Process-tree cleanup always finishes before replay completion, so a child cannot keep either inherited output descriptors or the replay writer blocked.
Types ¶
type Replay ¶
type Replay struct {
// contains filtered or unexported fields
}
Replay owns an in-memory kubeconfig until Close. It is concurrency-safe.
func NewFromFD ¶
NewFromFD reads a kubeconfig from an inherited anonymous or named pipe. The caller retains ownership of the original descriptor; reading its duplicate consumes the same stream.