mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-13 19:28:55 +00:00
fix, enhancement (#7988)
* fix, enhancement Signed-off-by: Ved Ratan <vedratan8@gmail.com> * lint Signed-off-by: Ved Ratan <vedratan8@gmail.com> --------- Signed-off-by: Ved Ratan <vedratan8@gmail.com>
This commit is contained in:
parent
5b79163ba5
commit
0ebc7518a8
1 changed files with 5 additions and 0 deletions
|
@ -147,6 +147,11 @@ func (c *controller) reconcile(itemKey string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
// if the object is being deleted, return early
|
||||
if metaObj.GetDeletionTimestamp() != nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
labels := metaObj.GetLabels()
|
||||
ttlValue, ok := labels[kyverno.LabelCleanupTtl]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue