Skip to content

Commit efeb4b2

Browse files
author
Soroosh Sarabadani
committed
remove default finalizer name
1 parent 6361e50 commit efeb4b2

File tree

1 file changed

+6
-3
lines changed
  • operator-framework/src/main/java/io/javaoperatorsdk/operator/api

1 file changed

+6
-3
lines changed

operator-framework/src/main/java/io/javaoperatorsdk/operator/api/Controller.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@
1010
@Retention(RetentionPolicy.RUNTIME)
1111
@Target({ElementType.TYPE})
1212
public @interface Controller {
13-
14-
String DEFAULT_FINALIZER = "operator.default.finalizer";
13+
String NULL = "";
1514

1615
String crdName();
1716

1817
Class<? extends CustomResource> customResourceClass();
1918

20-
String finalizerName();
19+
/**
20+
* Optional finalizer name, if it is not,
21+
* the canonical name of the Controller class will be used as the name of the finalizer.
22+
*/
23+
String finalizerName() default NULL;
2124

2225
/**
2326
* If true, will dispatch new event to the controller if generation increased since the last processing, otherwise will

0 commit comments

Comments
 (0)