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
Improve Error Handling in InstalledBundle Determination and Logic
Summary
Current error handling in the InstalledBundle determination follows a simplistic approach of zeroing out state and returning an error. This issue aims to develop a more nuanced error handling strategy that preserves as much state as possible, continues progress where feasible, and maintains context of installed bundles even when encountering errors in catalog connections.
Details
Context
During the reconciliation process, the current error handling approach involves zeroing out state and returning an error, which can lead to loss of important context about the installed bundles. This is not ideal, especially when partial progress can still be reported, and previous state can be preserved. Discussions have highlighted the following key points:
Progressing Status: The need for a Progressing status to describe scenarios where different versions are installed and resolved.
Helm Secret as Source of Truth: Logic should consider the Helm secret as the source of truth for the installed bundle.
ActionClient.Get: Potential use of Helm helper functions like ActionClient.Get to aid in this process.
Problem
Loss of Installed Bundle Context: When errors occur, especially in catalog connections, the currently installed bundle is removed from the status, despite it still being installed.
Early Error Termination: The current reconciliation logic stops at the first encountered error, missing out on capturing and preserving partial state.
Goals
Preserve State: Implement error handling that retains the context of the installed bundle even in error scenarios.
Report Partial Progress: Ensure the system continues to report as much progress as possible even when encountering errors.
Action Items
Refactor Error Handling:
Develop a strategy to preserve the previous state when an error occurs, particularly focusing on maintaining the context of the installed bundle.
Ensure that partial progress is reported wherever feasible.
Separate Installed Bundle Determination:
Isolate the logic for determining the installed bundle from the rest of the reconciliation process to simplify error handling and improve clarity.
Use the Helm secret as the source of truth for the installed bundle status.
This issue is not being resolved in the PR #1007. However, it is crucial to address these improvements in the near future to enhance the reconciliation process.
The text was updated successfully, but these errors were encountered:
Improve Error Handling in InstalledBundle Determination and Logic
Summary
Current error handling in the InstalledBundle determination follows a simplistic approach of zeroing out state and returning an error. This issue aims to develop a more nuanced error handling strategy that preserves as much state as possible, continues progress where feasible, and maintains context of installed bundles even when encountering errors in catalog connections.
Details
Context
During the reconciliation process, the current error handling approach involves zeroing out state and returning an error, which can lead to loss of important context about the installed bundles. This is not ideal, especially when partial progress can still be reported, and previous state can be preserved. Discussions have highlighted the following key points:
Progressing
status to describe scenarios where different versions are installed and resolved.ActionClient.Get
to aid in this process.Problem
Goals
Action Items
Refactor Error Handling:
Separate Installed Bundle Determination:
References
Additional Notes
This issue is not being resolved in the PR #1007. However, it is crucial to address these improvements in the near future to enhance the reconciliation process.
The text was updated successfully, but these errors were encountered: