File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
operator-framework/src/main/java/com/github/containersolutions/operator/processing Expand file tree Collapse file tree 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) {
6565 lock .lock ();
6666 log .debug ("Scheduling event from Api: {}" , event );
6767 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 .
7171 eventStore .removeLastGenerationForDeletedResource (event .resourceUid ());
7272 if (event .getResource ().getMetadata ().getDeletionTimestamp () != null ) {
7373 // 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