Documentation ¶
Index ¶
Constants ¶
View Source
const ( // NamespaceHostNetworkTrue occurs when hostNetwork is set to true in the container podspec NamespaceHostNetworkTrue = "NamespaceHostNetworkTrue" // NamespaceHostIPCTrue occurs when hostIPC is set to true in the container podspec NamespaceHostIPCTrue = "NamespaceHostIPCTrue" // NamespaceHostPIDTrue occurs when hostPID is set to true in the container podspec NamespaceHostPIDTrue = "NamespaceHostPIDTrue" )
View Source
const HostIPCOverrideLabel = "allow-namespace-host-IPC"
View Source
const HostNetworkOverrideLabel = "allow-namespace-host-network"
View Source
const HostPIDOverrideLabel = "allow-namespace-host-PID"
View Source
const Name = "hostns"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostNamespaces ¶
type HostNamespaces struct{}
HostNamespaces implements Auditable
func New ¶
func New() *HostNamespaces
func (*HostNamespaces) Audit ¶
func (a *HostNamespaces) Audit(resource k8stypes.Resource, _ []k8stypes.Resource) ([]*kubeaudit.AuditResult, error)
Audit checks that hostNetwork, hostIPC and hostPID are set to false in container podSpecs
Click to show internal directories.
Click to hide internal directories.