Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Workers is the number of workers for this controller Workers = 2 ControllerName = "webhook-controller" DefaultWebhookTimeout = 10 AnnotationLastRequestTime = "kyverno.io/last-request-time" IdleDeadline = tickerInterval * 10 )
Variables ¶
This section is empty.
Functions ¶
func NewController ¶
func NewController( discoveryClient dclient.IDiscovery, mwcClient controllerutils.ObjectClient[*admissionregistrationv1.MutatingWebhookConfiguration], vwcClient controllerutils.ObjectClient[*admissionregistrationv1.ValidatingWebhookConfiguration], leaseClient controllerutils.ObjectClient[*coordinationv1.Lease], kyvernoClient versioned.Interface, mwcInformer admissionregistrationv1informers.MutatingWebhookConfigurationInformer, vwcInformer admissionregistrationv1informers.ValidatingWebhookConfigurationInformer, cpolInformer kyvernov1informers.ClusterPolicyInformer, polInformer kyvernov1informers.PolicyInformer, secretInformer corev1informers.SecretInformer, leaseInformer coordinationv1informers.LeaseInformer, clusterroleInformer rbacv1informers.ClusterRoleInformer, server string, defaultTimeout int32, servicePort int32, autoUpdateWebhooks bool, admissionReports bool, runtime runtimeutils.Runtime, configuration config.Configuration, ) controllers.Controller
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.