Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCronJob ¶
func NewCronJob(name, namespace string) *batchv1.CronJob
func ParseError ¶
func ParseError(r io.Reader, plugin string) (string, error)
ParseError extracts an error message from a given <io.Reader> pointing to a Zora plugin error output. It uses regular expressions as heuristics to find the message, whereby the first match is returned.
Types ¶
type CronJobMutator ¶
type CronJobMutator struct {
Scheme *runtime.Scheme
Existing *batchv1.CronJob
Plugin *v1alpha1.Plugin
PluginRef v1alpha1.PluginReference
ClusterScan *v1alpha1.ClusterScan
KubeconfigSecret *corev1.Secret
WorkerImage string
ServiceAccountName string
Suspend bool
KubexnsImage string
ChecksConfigMap string
TrivyPVC string
ClusterUID types.UID
}
Click to show internal directories.
Click to hide internal directories.