plugins

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

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
}

func (*CronJobMutator) Mutate

func (r *CronJobMutator) Mutate() error

Mutate returns a function which mutates the existing CronJob into it's desired state.

Jump to

Keyboard shortcuts

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