Skip to content

feat(errors): invalid user input error handling#236

Merged
christophrj merged 1 commit into
mainfrom
feat/user-input-errors
May 22, 2026
Merged

feat(errors): invalid user input error handling#236
christophrj merged 1 commit into
mainfrom
feat/user-input-errors

Conversation

@christophrj
Copy link
Copy Markdown
Member

On-behalf-of: @SAP christopher.junk@sap.com

What this PR does / why we need it:
This PR introduces ErrInvalidUserInput and IgnoreInvalidUserInput(error) for consistent user input error handling in service providers. ErrInvalidUserInput is used to create errors that can be ignored at the end of reconciliation. This allows you to handle errors properly and skip unnecessary requeues.

Which issue(s) this PR fixes:
None

Special notes for your reviewer:
Based on the discussion of openmcp-project/service-provider-flux#46.
I simplified the initial sp-flux implementation to just a predefined error with a helper for reuse in service providers and potentially other controllers.

Release note:

New ErrInvalidUserInput for consistent handling of user input errors in service providers.

Introduces ErrInvalidUserInput and IgnoreInvalidUserInput(error) to ignore user
input errors at the end of reconciliation. This allows you to handle errors
properly and skip unnecessary requeues.

On-behalf-of: @SAP christopher.junk@sap.com
Signed-off-by: Christopher Junk <christopher.junk@sap.com>
@christophrj christophrj force-pushed the feat/user-input-errors branch from 0affa04 to 0a7e66d Compare May 21, 2026 17:50
@christophrj christophrj requested a review from Diaphteiros May 22, 2026 07:37
@christophrj christophrj merged commit 183fef4 into main May 22, 2026
8 checks passed
@christophrj christophrj deleted the feat/user-input-errors branch May 22, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants