Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var KubeauditLogLevels = map[string]int{ "ERROR": kubeaudit.Error, "WARN": kubeaudit.Warn, "INFO": kubeaudit.Info, }
KubeauditLogLevels represents an enum for the supported log levels.
View Source
var RootCmd = &cobra.Command{
Use: "kubeaudit",
Short: "A Kubernetes security auditor",
Long: `kubeaudit is a program that makes sure all your containers are secure #patcheswelcome
kubeaudit has three modes:
1. Manifest mode: If a Kubernetes manifest file is provided using the -f/--manifest flag, kubeaudit will audit the manifest file.
Kubeaudit also supports autofixing in manifest mode using the 'autofix' command. This will fix the manifest in-place.
The fixed manfiest can be written to a different file using the -o/--out flag.
2. Cluster mode: If kubeaudit detects it is running within a container, it will try to audit the cluster it is contained in.
3. Local mode: kubeaudit will audit the resources specified by the local kubeconfig file ($HOME/.kube/config). A different
kubeaconfig location can be specified using the -c/--kubeconfig flag
`,
}
RootCmd defines the shell command usage for kubeaudit.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.