Affected by GO-2024-2748
and 4 other vulnerabilities
GO-2024-2748 : Privilege Escalation in Kubernetes in k8s.io/apimachinery
GO-2024-2753 : Denial of service in Kubernetes in k8s.io/kubernetes
GO-2024-2754 : Sensitive Information leak via Log File in Kubernetes in k8s.io/kubernetes
GO-2024-2755 : Sensitive Information leak via Log File in Kubernetes in k8s.io/kubernetes
GO-2024-2994 : Kubernetes sets incorrect permissions on Windows containers logs in k8s.io/kubernetes
Discover Packages
k8s.io/kubernetes
pkg
util
io
package
Version:
v1.3.0-alpha.3....-b83af3d
Opens a new window with list of versions in this module.
Published: May 12, 2016
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
LoadPodFromFile will read, decode, and return a Pod from a file.
SavePodToFile will encode and save a pod to a given path & permissions
type NsenterWriter struct {
}
Alternative implementation of Writer interface that allows writing data to file
using nsenter command.
If a program (e.g. kubelet) runs in a container it may want to write data to
a mounted device. Since in Docker, mount propagation mode is set to private,
it will not see the mounted device in its own namespace. To work around this
limitaion one has to first enter hosts namespace (by using 'nsenter') and only
then write data.
TODO: should take a writer, not []byte
type StdWriter struct {
}
StdWriter implements Writer interface and uses standard libraries
for writing data to files.
Writer is an interface which allows to write data to a file.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.