File tree 1 file changed +3
-3
lines changed
operator-framework/src/main/java/com/github/containersolutions/operator/processing
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -65,9 +65,9 @@ void scheduleEventFromApi(CustomResourceEvent event) {
65
65
lock .lock ();
66
66
log .debug ("Scheduling event from Api: {}" , event );
67
67
if (event .getAction () == Action .DELETED ) {
68
- // This removed data from memory for deleted resource (prevent memory leak basically).
69
- // Its quite interesting that this is always sufficient here (no finalizer or other mechanism needs to involved).
70
- // If we are running we get DELETE the event, if not the memory is already gone.
68
+ // This removes data from memory for deleted resource (prevent memory leak basically).
69
+ // Its quite interesting that this is always sufficient here (no finalizer or other mechanism needs to be involved).
70
+ // Thus, if operator is running we get DELETE the event, if not the memory is already gone anyways .
71
71
eventStore .removeLastGenerationForDeletedResource (event .resourceUid ());
72
72
if (event .getResource ().getMetadata ().getDeletionTimestamp () != null ) {
73
73
// Note that we always use finalizers, we want to process delete event just in corner case,
You can’t perform that action at this time.
0 commit comments