-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: return result when calling workflow explicitly #2601
Conversation
Signed-off-by: Chris Laprun <[email protected]>
|
||
import io.javaoperatorsdk.operator.api.reconciler.dependent.DependentResource; | ||
|
||
@SuppressWarnings("rawtypes") | ||
public class WorkflowCleanupResult extends WorkflowResult { | ||
private Boolean allPostConditionsMet; | ||
public interface WorkflowCleanupResult extends WorkflowResult { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this kind of change go in not a major release? This is a public class so it will break user code if someone extended it originally and now it's an interface.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Theoretically, yes. Practically, these classes are not meant to be extended by the user, they're objects that the SDK returns as part of its processing. The only case where I could potentially imagine a user extending these classes would be in tests but even so, that would be quite a stretch, in my opinion…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This targets next, what will be a major release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, yes! Forgot about that! 🤦😅
import java.util.Optional; | ||
|
||
import io.javaoperatorsdk.operator.api.reconciler.dependent.DependentResource; | ||
|
||
@SuppressWarnings("rawtypes") | ||
public class WorkflowReconcileResult extends WorkflowResult { | ||
public interface WorkflowReconcileResult extends WorkflowResult { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
Signed-off-by: Chris Laprun <[email protected]>
Signed-off-by: Chris Laprun <[email protected]>
Signed-off-by: Chris Laprun [email protected]