Ignore objects that are being deleted
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
This commit is contained in:
parent
3d63a76da9
commit
ebd7ba5e70
@ -145,6 +145,11 @@ func (r *genericInjectReconciler) Reconcile(req ctrl.Request) (ctrl.Result, erro
|
||||
}
|
||||
log = logf.WithResource(r.log, metaObj)
|
||||
|
||||
if !metaObj.GetDeletionTimestamp().IsZero() {
|
||||
log.V(logf.TraceLevel).Info("ignoring", "reason", "object has a non-zero deletion timestamp")
|
||||
return ctrl.Result{}, nil
|
||||
}
|
||||
|
||||
dataSource, err := r.caDataSourceFor(log, metaObj)
|
||||
if err != nil {
|
||||
log.V(logf.DebugLevel).Info("failed to determine ca data source for injectable")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user