mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
Signed-off-by: Pradeep Lakshmi Narasimha <pradeep.vaishnav4@gmail.com>
This commit is contained in:
parent
29ee373bab
commit
1ab1897d2c
1 changed files with 2 additions and 1 deletions
|
@ -57,6 +57,7 @@ func newController(client metadata.Getter, metainformer informers.GenericInforme
|
||||||
informer: metainformer.Informer(),
|
informer: metainformer.Informer(),
|
||||||
logger: logger,
|
logger: logger,
|
||||||
metrics: newTTLMetrics(logger),
|
metrics: newTTLMetrics(logger),
|
||||||
|
gvr: gvr,
|
||||||
}
|
}
|
||||||
enqueue := controllerutils.LogError(logger, controllerutils.Parse(controllerutils.MetaNamespaceKey, controllerutils.Queue(queue)))
|
enqueue := controllerutils.LogError(logger, controllerutils.Parse(controllerutils.MetaNamespaceKey, controllerutils.Queue(queue)))
|
||||||
registration, err := controllerutils.AddEventHandlers(
|
registration, err := controllerutils.AddEventHandlers(
|
||||||
|
@ -144,7 +145,7 @@ func (c *controller) reconcile(ctx context.Context, logger logr.Logger, itemKey
|
||||||
attribute.String("resource_namespace", metaObj.GetNamespace()),
|
attribute.String("resource_namespace", metaObj.GetNamespace()),
|
||||||
attribute.String("resource_group", c.gvr.Group),
|
attribute.String("resource_group", c.gvr.Group),
|
||||||
attribute.String("resource_version", c.gvr.Version),
|
attribute.String("resource_version", c.gvr.Version),
|
||||||
attribute.String("resource", c.gvr.Resource),
|
attribute.String("resource_resource", c.gvr.Resource),
|
||||||
}
|
}
|
||||||
// if the object is being deleted, return early
|
// if the object is being deleted, return early
|
||||||
if metaObj.GetDeletionTimestamp() != nil {
|
if metaObj.GetDeletionTimestamp() != nil {
|
||||||
|
|
Loading…
Add table
Reference in a new issue