background

package
v1.7.0-rc1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Config config.Configuration
	// contains filtered or unexported fields
}

Controller manages the life-cycle for Generate-Requests and applies generate rule

func NewController

func NewController(
	kubeClient kubernetes.Interface,
	kyvernoClient kyvernoclient.Interface,
	client dclient.Interface,
	policyInformer kyvernoinformer.ClusterPolicyInformer,
	npolicyInformer kyvernoinformer.PolicyInformer,
	urInformer urkyvernoinformer.UpdateRequestInformer,
	eventGen event.Interface,
	namespaceInformer coreinformers.NamespaceInformer,
	log logr.Logger,
	dynamicConfig config.Configuration,
) (*Controller, error)

NewController returns an instance of the Generate-Request Controller

func (*Controller) MarkUR

func (*Controller) ProcessUR

func (c *Controller) ProcessUR(ur *urkyverno.UpdateRequest) error

func (*Controller) Run

func (c *Controller) Run(workers int, stopCh <-chan struct{})

Run starts workers

func (*Controller) UnmarkUR

func (c *Controller) UnmarkUR(ur *urkyverno.UpdateRequest) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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