Skip to content

Commit

Permalink
Skip OperandRequest for OperandBindinfo if the OperandRequest is in t…
Browse files Browse the repository at this point in the history
…he deletion status (#1018)

Signed-off-by: Daniel Fan <fanyuchensx@gmail.com>
  • Loading branch information
Daniel-Fan authored Feb 22, 2024
1 parent 8d3224d commit 5a98d87
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/operandbindinfo/operandbindinfo_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Re
}
merr.Add(err)
continue
} else if !requestInstance.ObjectMeta.DeletionTimestamp.IsZero() {
klog.Warningf("OperandRequest %s/%s is being deleted, skip the OperandBindInfo %s/%s", requestInstance.Namespace, requestInstance.Name, bindInfoInstance.Namespace, bindInfoInstance.Name)
continue
}
// Get binding information from OperandRequest
secretReq, cmReq := getBindingInfofromRequest(bindInfoInstance, requestInstance)
Expand Down

0 comments on commit 5a98d87

Please sign in to comment.