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, gctxentryInformer kyvernov2alpha1informers.GlobalContextEntryInformer, server string, defaultTimeout int32, servicePort int32, webhookServerPort int32, autoUpdateWebhooks bool, admissionReports bool, runtime runtimeutils.Runtime, configuration config.Configuration, caSecretName string, ) controllers.Controller
Types ¶
type GroupVersionResourceScope ¶ added in v1.12.0
type GroupVersionResourceScope struct { schema.GroupVersionResource Scope admissionregistrationv1.ScopeType }
GroupVersionResourceScope adds the resource scope to the GVR
func (GroupVersionResourceScope) String ¶ added in v1.12.0
func (gvs GroupVersionResourceScope) String() string
String puts / between group/version/resource and scope
Click to show internal directories.
Click to hide internal directories.