cron

package
v0.0.0-...-8e01d1d Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPods

func CheckPods(cfg Config, isps []v1beta1.ImageSecurityPolicy) error

CheckPods checks all running pods against defined policies.

func RunInForeground

func RunInForeground(cfg Config) error

RunInForeground checks Pods in foreground.

func Start

func Start(ctx context.Context, cfg Config, checkInterval time.Duration)

Start starts the background processing of image security policies.

Types

type Config

type Config struct {
	PodLister            podLister
	Client               metadata.ReadWriteClient
	ReviewConfig         *review.Config
	SecurityPolicyLister func(namespace string) ([]v1beta1.ImageSecurityPolicy, error)
}

func NewCronConfig

func NewCronConfig(cs *kubernetes.Clientset, client metadata.ReadWriteClient) *Config

Jump to

Keyboard shortcuts

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