Skip to content

Commit eaddc24

Browse files
authored
fix: javadoc problems preventing snapshot release (#1848)
1 parent eace828 commit eaddc24

20 files changed

+73
-7
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/Operator.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public Operator(KubernetesClient kubernetesClient) {
4343
}
4444

4545
/**
46+
* @param configurationService implementation
4647
* @deprecated Use {@link #Operator(Consumer)} instead
4748
*/
4849
@Deprecated(forRemoval = true)
@@ -173,6 +174,7 @@ public void stop() throws OperatorException {
173174
*
174175
* @param reconciler the reconciler to register
175176
* @param <P> the {@code CustomResource} type associated with the reconciler
177+
* @return registered controller
176178
* @throws OperatorException if a problem occurred during the registration process
177179
*/
178180
public <P extends HasMetadata> RegisteredController<P> register(Reconciler<P> reconciler)
@@ -192,6 +194,7 @@ public <P extends HasMetadata> RegisteredController<P> register(Reconciler<P> re
192194
* @param reconciler part of the reconciler to register
193195
* @param configuration the configuration with which we want to register the reconciler
194196
* @param <P> the {@code HasMetadata} type associated with the reconciler
197+
* @return registered controller
195198
* @throws OperatorException if a problem occurred during the registration process
196199
*/
197200
public <P extends HasMetadata> RegisteredController<P> register(Reconciler<P> reconciler,
@@ -230,6 +233,7 @@ public <P extends HasMetadata> RegisteredController<P> register(Reconciler<P> re
230233
*
231234
* @param reconciler part of the reconciler to register
232235
* @param configOverrider consumer to use to change config values
236+
* @return registered controller
233237
* @param <P> the {@code HasMetadata} type associated with the reconciler
234238
*/
235239
public <P extends HasMetadata> RegisteredController<P> register(Reconciler<P> reconciler,

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/ConfigurationService.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ default Optional<LeaderElectionConfiguration> getLeaderElectionConfiguration() {
199199
* if false, the startup will ignore recoverable errors, caused for example by RBAC issues, and
200200
* will try to reconnect periodically in the background.
201201
* </p>
202+
*
203+
* @return actual value described above
202204
*/
203205
default boolean stopOnInformerErrorDuringStartup() {
204206
return true;
@@ -208,6 +210,8 @@ default boolean stopOnInformerErrorDuringStartup() {
208210
* Timeout for cache sync. In other words source start timeout. Note that is
209211
* "stopOnInformerErrorDuringStartup" is true the operator will stop on timeout. Default is 2
210212
* minutes.
213+
*
214+
* @return Duration of sync timeout
211215
*/
212216
default Duration cacheSyncTimeout() {
213217
return Duration.ofMinutes(2);
@@ -216,6 +220,8 @@ default Duration cacheSyncTimeout() {
216220
/**
217221
* Handler for an informer stop. Informer stops if there is a non-recoverable error. Like received
218222
* a resource that cannot be deserialized.
223+
*
224+
* @return an optional InformerStopHandler
219225
*/
220226
default Optional<InformerStoppedHandler> getInformerStoppedHandler() {
221227
return Optional.of((informer, ex) -> {

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/ConfigurationServiceOverrider.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ public ResourceClassResolver getResourceClassResolver() {
238238

239239
/**
240240
* @deprecated Use {@link ConfigurationServiceProvider#overrideCurrent(Consumer)} instead
241+
* @param original that will be overriding
242+
* @return current overrider
241243
*/
242244
@Deprecated(since = "2.2.0")
243245
public static ConfigurationServiceOverrider override(ConfigurationService original) {

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/ControllerConfigurationOverrider.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ public ControllerConfigurationOverrider<R> watchingAllNamespaces() {
106106
}
107107

108108
/**
109+
* @param retry configuration
110+
* @return current instance of overrider
109111
* @deprecated Use {@link #withRetry(Retry)} instead
110112
*/
111113
@Deprecated(forRemoval = true)

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/ResolvedControllerConfiguration.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ public ResourceEventFilter<P> getEventFilter() {
156156

157157
/**
158158
* @deprecated Use {@link OnAddFilter}, {@link OnUpdateFilter} and {@link GenericFilter} instead
159+
*
160+
* @param eventFilter
159161
*/
160162
@Deprecated(forRemoval = true)
161163
protected void setEventFilter(ResourceEventFilter<P> eventFilter) {

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/informer/InformerConfiguration.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ public <P extends HasMetadata> PrimaryToSecondaryMapper<P> getPrimaryToSecondary
7878
* {@link io.javaoperatorsdk.operator.RegisteredController}). If true, changing the target
7979
* namespaces of a controller would result to change target namespaces for the
8080
* InformerEventSource.
81+
*
82+
* @return if namespace changes should be followed
8183
*/
8284
boolean followControllerNamespaceChanges();
8385

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/monitoring/Metrics.java

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ public interface Metrics {
2323

2424
/**
2525
* Do initialization if necessary;
26+
*
27+
* @param controller callback
2628
*/
2729
default void controllerRegistered(Controller<? extends HasMetadata> controller) {}
2830

@@ -36,6 +38,9 @@ default void controllerRegistered(Controller<? extends HasMetadata> controller)
3638
default void receivedEvent(Event event, Map<String, Object> metadata) {}
3739

3840
/**
41+
* @param metadata additional metadata
42+
* @param resourceID of primary resource
43+
* @param retryInfo for current execution
3944
* @deprecated Use {@link #reconcileCustomResource(HasMetadata, RetryInfo, Map)} instead
4045
*/
4146
@Deprecated(forRemoval = true)
@@ -56,6 +61,9 @@ default void reconcileCustomResource(HasMetadata resource, RetryInfo retryInfo,
5661
}
5762

5863
/**
64+
* @param exception actual exception
65+
* @param metadata additional metadata
66+
* @param resourceID of primary resource
5967
* @deprecated Use {@link #failedReconciliation(HasMetadata, Exception, Map)} instead
6068
*/
6169
@Deprecated(forRemoval = true)
@@ -84,7 +92,7 @@ default void reconciliationExecutionFinished(HasMetadata resource,
8492
Map<String, Object> metadata) {}
8593

8694
/**
87-
*
95+
* @param resourceID of primary resource
8896
* @deprecated Use (and implement) {@link #cleanupDoneFor(ResourceID, Map)} instead
8997
*/
9098
@Deprecated
@@ -102,7 +110,7 @@ default void cleanupDoneFor(ResourceID resourceID) {
102110
default void cleanupDoneFor(ResourceID resourceID, Map<String, Object> metadata) {}
103111

104112
/**
105-
*
113+
* @param resourceID of primary resource
106114
* @deprecated Use (and implement) {@link #finishedReconciliation(ResourceID, Map)} instead
107115
*/
108116
@Deprecated
@@ -111,6 +119,8 @@ default void finishedReconciliation(ResourceID resourceID) {
111119
}
112120

113121
/**
122+
* @param resourceID of primary resource
123+
* @param metadata additional metadata
114124
* @deprecated Use {@link #finishedReconciliation(HasMetadata, Map)} instead
115125
*/
116126
@Deprecated(forRemoval = true)

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,22 @@
7575

7676
/**
7777
* Filter of onAdd events of resources.
78+
*
79+
* @return on-add filter
7880
**/
7981
Class<? extends OnAddFilter> onAddFilter() default OnAddFilter.class;
8082

81-
/** Filter of onUpdate events of resources. */
83+
/**
84+
* Filter of onUpdate events of resources.
85+
*
86+
* @return on-update filter
87+
*/
8288
Class<? extends OnUpdateFilter> onUpdateFilter() default OnUpdateFilter.class;
8389

8490
/**
8591
* Filter applied to all operations (add, update, delete). Used to ignore some resources.
92+
*
93+
* @return generic filter
8694
**/
8795
Class<? extends GenericFilter> genericFilter() default GenericFilter.class;
8896

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ public interface Reconciler<R extends HasMetadata> {
88
* The implementation of this operation is required to be idempotent. Always use the UpdateControl
99
* object to make updates on custom resource if possible.
1010
*
11+
* @throws Exception from the custom implementation
1112
* @param resource the resource that has been created or updated
1213
* @param context the context with which the operation is executed
1314
* @return UpdateControl to manage updates on the custom resource (usually the status) after

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ default void useEventSourceWithName(String name) {}
1010
/**
1111
* Throws {@link EventSourceNotFoundException} an exception if the target event source to use is
1212
* not found.
13+
*
14+
* @param eventSourceRetriever for event sources
1315
*/
1416
void resolveEventSource(EventSourceRetriever<P> eventSourceRetriever)
1517
throws EventSourceNotFoundException;

0 commit comments

Comments
 (0)