fix: add more info to gitlab agent reconcile error
Description
When running glab cluster agent bootstrap command, the GitLab agent reconcile error message currently lacks additional information that can be helpful for users. The current message is failed to reconcile the GitLab Agent. The new message with this change would be as follows:
failed to reconcile the GitLab Agent:
All attempts fail:
#1: ✗ HelmRelease object 'gitlab-agent' not found in "flux-system" namespace
#2: ✗ HelmRelease object 'gitlab-agent' not found in "flux-system" namespace
#3: ✗ HelmRelease object 'gitlab-agent' not found in "flux-system" namespace
#4: ✗ HelmRelease object 'gitlab-agent' not found in "flux-system" namespace
#5: ✗ HelmRelease object 'gitlab-agent' not found in "flux-system" namespace
#6: ✗ HelmRelease object 'gitlab-agent' not found in "flux-system" namespace
- fix: add more info to gitlab agent reconcile error
Related Issues
N/A
How has this been tested?
Tested locally by creating a private repository that flux is unable to properly sync from.
Screenshots (if appropriate):
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation -
Chore (Related to CI or Packaging to platforms) -
Test gap
Edited by Timo Furrer
