Skip to content

Commit 8457720

Browse files
committed
improve: cleaner throws Exception (#2527)
Signed-off-by: Attila Mészáros <[email protected]>
1 parent 35cc48d commit 8457720

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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
}

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

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

191191
@Override
192-
public DeleteControl execute() {
192+
public DeleteControl execute() throws Exception {
193193
initContextIfNeeded(resource, context);
194194
WorkflowCleanupResult workflowCleanupResult = null;
195195

0 commit comments

Comments
 (0)