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 (c *Controller) MarkUR(ur *urkyverno.UpdateRequest) (*urkyverno.UpdateRequest, bool, error)
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
Click to show internal directories.
Click to hide internal directories.