-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor plugin reconciliation to ensure only one update on plugin
Signed-off-by: John Niang <[email protected]>
- Loading branch information
Showing
22 changed files
with
928 additions
and
1,385 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
api/src/main/java/run/halo/app/extension/controller/RequeueException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package run.halo.app.extension.controller; | ||
|
||
import run.halo.app.extension.controller.Reconciler.Result; | ||
|
||
|
||
/** | ||
* Requeue with result data after throwing this exception. | ||
* | ||
* @author johnniang | ||
*/ | ||
public class RequeueException extends RuntimeException { | ||
|
||
private final Result result; | ||
|
||
public RequeueException(Result result) { | ||
this(result, null); | ||
} | ||
|
||
public RequeueException(Result result, String reason) { | ||
this(result, reason, null); | ||
} | ||
|
||
public RequeueException(Result result, String reason, Throwable t) { | ||
super(reason, t); | ||
this.result = result; | ||
} | ||
|
||
public Result getResult() { | ||
return result; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.