Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Skip OperandRequest for OperandBindinfo if the OperandRequest is in t…
…he deletion status

Signed-off-by: Daniel Fan <[email protected]>
  • Loading branch information
Daniel-Fan committed Feb 21, 2024
commit a31629eee0940772056c68cb836815c5d34f3fc0
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