Skip to content

Commit 60ca866

Browse files
authored
docs: javadoc for CRUDNoGCKubernetesDependentResource (#1483)
1 parent 9d30e24 commit 60ca866

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/CRUDKubernetesDependentResource.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
import io.javaoperatorsdk.operator.processing.dependent.Updater;
88

99
/**
10-
* Adaptor class for standalone mode for resources that manage Create, Read and Update operations
11-
* and that should be automatically garbage-collected by Kubernetes when the associated primary
12-
* resource is destroyed.
10+
* Adaptor class resources that manage Create, Read and Update operations and that should be
11+
* automatically garbage-collected by Kubernetes when the associated primary resource is destroyed.
1312
*
1413
* @param <R> the type of the managed dependent resource
1514
* @param <P> the type of the associated primary resource

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/CRUDNoGCKubernetesDependentResource.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@
66
import io.javaoperatorsdk.operator.processing.dependent.Creator;
77
import io.javaoperatorsdk.operator.processing.dependent.Updater;
88

9+
/**
10+
*
11+
* Adaptor class resources that manage Create, Read and Update operations, however resource is NOT
12+
* garbage collected by Kubernetes when the associated primary resource is destroyed, instead
13+
* explicitly deleted. This is useful when resource needs to be deleted before another one in a
14+
* workflow, in other words an ordering matters during a cleanup. See also:
15+
* <a href="https://github.com/java-operator-sdk/java-operator-sdk/issues/1127">Related issue</a>
16+
*
17+
* @param <R> the type of the managed dependent resource
18+
* @param <P> the type of the associated primary resource
19+
*/
920
@Ignore
1021
public class CRUDNoGCKubernetesDependentResource<R extends HasMetadata, P extends HasMetadata>
1122
extends KubernetesDependentResource<R, P>

0 commit comments

Comments
 (0)