-
Notifications
You must be signed in to change notification settings - Fork 11
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
fix: skip update only if the conflict error is related to main output #492
fix: skip update only if the conflict error is related to main output #492
Conversation
664c4cf
to
d0a84cb
Compare
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.
I guess we need to apply same fix to state-etcd
@@ -253,7 +253,10 @@ func (ctrl *QController[Input, Output]) reconcileRunning(ctx context.Context, lo | |||
|
|||
return transformError | |||
}); err != nil { | |||
if state.IsConflictError(err) { | |||
if state.IsConflictError(err, |
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.
I think there is same in non-q transform/transform.go
which can be updated as well
Yeah, I'm going to do it, |
Fix `qtransform` controller bug which was skipping the reconciliation if the conflict error is returned from the `transformFunc` and is related to the extra outputs. Introduce a way to check if the error was raised by any particular resource type. Signed-off-by: Artem Chernyshev <[email protected]>
d0a84cb
to
c0a68e9
Compare
/m |
See: cosi-project/runtime#492 Signed-off-by: Artem Chernyshev <[email protected]>
See: cosi-project/runtime#492 Signed-off-by: Artem Chernyshev <[email protected]>
See: cosi-project/runtime#492 Signed-off-by: Artem Chernyshev <[email protected]> (cherry picked from commit 4c329db)
Fix
qtransform
controller bug which was skipping the reconciliation if the conflict error is returned from thetransformFunc
and is related to the extra outputs.Introduce a way to check if the error was raised by any particular resource type.