Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.javaoperatorsdk.operator.api;

import io.fabric8.kubernetes.api.model.HasMetadata;
import io.fabric8.kubernetes.client.CustomResource;
import io.javaoperatorsdk.operator.api.reconciler.UpdateControl;

Expand All @@ -11,10 +12,9 @@
* is ignored.
*
* In order to work the status object returned by CustomResource.getStatus() should not be null. In
* addition to that from the controller that the
* {@link UpdateControl#updateStatusSubResource(CustomResource)} or
* {@link UpdateControl#updateCustomResourceAndStatus(CustomResource)} should be returned. The
* observed generation is not updated in other cases.
* addition to that from the controller that the {@link UpdateControl#updateStatus(HasMetadata)} or
* {@link UpdateControl#updateResourceAndStatus(HasMetadata)} should be returned. The observed
* generation is not updated in other cases.
*
* @see ObservedGenerationAwareStatus
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ public static <T extends HasMetadata> UpdateControl<T> updateStatus(
/**
* As a results of this there will be two call to K8S API. First the custom resource will be
* updates then the status sub-resource.
*
*
* @param <T> resource type
* @param customResource - custom resource to use in both API calls
* @return UpdateControl instance
*/
Expand Down