Skip to content

Commit 601af42

Browse files
csvirimetacosm
authored andcommitted
improve: cleaner throws Exception (#2527)
Signed-off-by: Attila Mészáros <[email protected]>
1 parent bc476b7 commit 601af42

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler/Cleaner.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ public interface Cleaner<P extends HasMetadata> {
2727
* that it can be safely deleted.
2828
* @see DeleteControl#noFinalizerRemoval()
2929
*/
30-
DeleteControl cleanup(P resource, Context<P> context);
30+
DeleteControl cleanup(P resource, Context<P> context) throws Exception;
3131

3232
}

Diff for: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/Controller.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public Map<String, Object> metadata() {
188188
}
189189

190190
@Override
191-
public DeleteControl execute() {
191+
public DeleteControl execute() throws Exception {
192192
initContextIfNeeded(resource, context);
193193
WorkflowCleanupResult workflowCleanupResult = null;
194194

0 commit comments

Comments
 (0)