You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Roadmap: v0.3 - 2024/12 Ability to choose the git push error default behavior
As a the DevOps of my team, I want to define the default behavior if for any reason, the push action fails.
What to do
1. Add the defaultPushErrorBehavior field in the RemoteSyncer
First, you need to create a new apiVersion for the RemoteSyncer object. Please see this page.
Roadmap: v0.3 - 2024/12 Ability to choose the git push error default behavior
As a the DevOps of my team, I want to define the default behavior if for any reason, the push action fails.
What to do
1. Add the
defaultPushErrorBehavior
field in theRemoteSyncer
First, you need to create a new apiVersion for the
RemoteSyncer
object. Please see this page.The field will be of a specific type.
2. Write the default behavior function
Write a function in the webhook request reconciler. Look for
wrc.remoteSyncer.Spec.DefaultPushErrorBehavior
.Block
, returnfalse
Pass
, returntrue
Index
, returnfalse
(this feature will be addressed in a feature release)3. Execute the behavior
If the push step fails, execute the function.
syngit/internal/controller/webhook_request_checker.go
Lines 120 to 125 in d2f6b55
Keep the
If the function returns
false
, thenElse, do nothing. The final
postCheck()
will be executed.Additional context
If you have any questions, please tag @damsien.
The text was updated successfully, but these errors were encountered: