Module templates

Module templates 

Source
Expand description

Check templates for kube-linter.

Templates are reusable check implementations that can be configured with parameters to create specific checks.

Modules§

antiaffinity
Anti-affinity detection template.
capabilities
Linux capabilities detection templates.
dangling
Dangling resource validation templates.
envvar
Environment variable check templates.
hostmounts
Host mount detection templates.
hostnetwork
Host network/PID/IPC detection templates.
latesttag
Latest tag detection template.
livenessprobe
Liveness probe detection template.
misc
Miscellaneous check templates.
pdb
PodDisruptionBudget check templates.
ports
Port-related check templates.
privileged
Privileged container detection template.
privilegeescalation
Privilege escalation detection template.
rbac
RBAC-related check templates.
readinessprobe
Readiness probe detection template.
readonlyrootfs
Read-only root filesystem detection template.
replicas
Replica count check templates.
requirements
CPU and memory requirements detection templates.
runasnonroot
Run as non-root detection template.
serviceaccount
Service account detection templates.
unsafeprocmount
Unsafe proc mount detection template.
updateconfig
Update strategy detection templates.
validation
General validation check templates.

Structs§

ParameterDesc
Parameter description for a template.

Enums§

TemplateError
Template instantiation errors.

Traits§

CheckFunc
A check function that analyzes a Kubernetes object.
Template
A template for creating checks.

Functions§

get_template
Get a template by key.
init_builtin_templates
Initialize all built-in templates. This is called automatically on first access to the registry.
list_templates
List all registered templates.
registry
Get the template registry, initializing if needed.