Skip to content

Commit fa17797

Browse files
committed
deprecations and remove unused class
1 parent 41acf1a commit fa17797

File tree

3 files changed

+8
-69
lines changed

3 files changed

+8
-69
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler/ControllerConfiguration.java

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,20 @@
5656
String labelSelector() default Constants.NO_VALUE_SET;
5757

5858
/**
59-
* Use onAddFilter, onUpdateFilter instead.
59+
* @deprecated Use onAddFilter, onUpdateFilter instead.
6060
*
61-
* <p>
62-
* Resource event filters only applies on events of the main custom resource. Not on events from
63-
* other event sources nor the periodic events.
64-
* </p>
61+
* <p>
62+
* Resource event filters only applies on events of the main custom resource. Not on
63+
* events from other event sources nor the periodic events.
64+
* </p>
6565
*
6666
* @return the list of event filters.
6767
*/
68-
@Deprecated
68+
@Deprecated(forRemoval = true)
6969
Class<? extends ResourceEventFilter>[] eventFilters() default {};
7070

7171
/**
72-
* Filter of onAdd events of resources. (Note that onDelete is missing, delete events don't
73-
* trigger reconciliation - since if finalizer used there the event is an update that triggers the
74-
* cleanup. If not used the resources are cleaned up by garbage collector.)
72+
* Filter of onAdd events of resources.
7573
**/
7674
Class<? extends Predicate<? extends HasMetadata>> onAddFilter() default VoidOnAddFilter.class;
7775

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/event/source/EventFilter.java

Lines changed: 0 additions & 60 deletions
This file was deleted.

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/event/source/controller/ResourceEventFilter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
*
1111
* @param <P> the type of custom resources handled by this filter
1212
*/
13+
@Deprecated(forRemoval = true)
1314
@FunctionalInterface
1415
public interface ResourceEventFilter<P extends HasMetadata> {
1516

0 commit comments

Comments
 (0)