hostns

package
v0.0.0-...-e70be16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 3 Imported by: 0

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 k8s.Resource, _ []k8s.Resource) ([]*kubeaudit.AuditResult, error)

Audit checks that hostNetwork, hostIPC and hostPID are set to false in container podSpecs

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL