Documentation ¶
Overview ¶
Package kubebench provides primitives for working with CIS Kubernetes benchmarks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶ added in v0.10.1
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶ added in v0.10.1
func (*Builder) Controller ¶ added in v0.10.1
type Plugin ¶ added in v0.10.0
type Plugin interface { // GetScanJobSpec describes the pod that will be created by Starboard when // it schedules a Kubernetes job to audit the configuration of the specified // node. GetScanJobSpec(node corev1.Node) (corev1.PodSpec, error) // ParseCISKubeBenchReportData is a callback to parse and convert logs of // the pod controlled by the scan job to v1alpha1.CISKubeBenchReportData. ParseCISKubeBenchReportData(logsStream io.ReadCloser) (v1alpha1.CISKubeBenchReportData, error) GetContainerName() string }
Plugin defines the interface between Starboard and Kubernetes configuration checker with CIS Kubernetes Benchmarks.
type ReadWriter ¶ added in v0.3.0
func NewReadWriter ¶ added in v0.9.0
func NewReadWriter(client client.Client) ReadWriter
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
func NewScanner ¶
func NewScanner( scheme *runtime.Scheme, clientset kubernetes.Interface, plugin Plugin, config starboard.ConfigData, opts kube.ScannerOpts, ) *Scanner
Click to show internal directories.
Click to hide internal directories.