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 11package io .javaoperatorsdk .operator .api ;
22
3+ import io .fabric8 .kubernetes .api .model .HasMetadata ;
34import io .fabric8 .kubernetes .client .CustomResource ;
45import io .javaoperatorsdk .operator .api .reconciler .UpdateControl ;
56
1112 * is ignored.
1213 *
1314 * 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.
1818 *
1919 * @see ObservedGenerationAwareStatus
2020 */
Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ public static <T extends HasMetadata> UpdateControl<T> updateStatus(
3131 /**
3232 * As a results of this there will be two call to K8S API. First the custom resource will be
3333 * updates then the status sub-resource.
34- *
34+ *
35+ * @param <T> resource type
3536 * @param customResource - custom resource to use in both API calls
3637 * @return UpdateControl instance
3738 */
You can’t perform that action at this time.
0 commit comments