File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
package io .javaoperatorsdk .operator .api ;
2
2
3
+ import io .fabric8 .kubernetes .api .model .HasMetadata ;
3
4
import io .fabric8 .kubernetes .client .CustomResource ;
4
5
import io .javaoperatorsdk .operator .api .reconciler .UpdateControl ;
5
6
11
12
* is ignored.
12
13
*
13
14
* In order to work the status object returned by CustomResource.getStatus() should not be null. In
14
- * addition to that from the controller that the
15
- * {@link UpdateControl#updateStatusSubResource(CustomResource)} or
16
- * {@link UpdateControl#updateCustomResourceAndStatus(CustomResource)} should be returned. The
17
- * observed generation is not updated in other cases.
15
+ * addition to that from the controller that the {@link UpdateControl#updateStatus(HasMetadata)} or
16
+ * {@link UpdateControl#updateResourceAndStatus(HasMetadata)} should be returned. The observed
17
+ * generation is not updated in other cases.
18
18
*
19
19
* @see ObservedGenerationAwareStatus
20
20
*/
Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ public static <T extends HasMetadata> UpdateControl<T> updateStatus(
31
31
/**
32
32
* As a results of this there will be two call to K8S API. First the custom resource will be
33
33
* updates then the status sub-resource.
34
- *
34
+ *
35
+ * @param <T> resource type
35
36
* @param customResource - custom resource to use in both API calls
36
37
* @return UpdateControl instance
37
38
*/
You can’t perform that action at this time.
0 commit comments