Skip to content
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 sending invalid Alertmanager configuration #205

Merged
merged 7 commits into from
Dec 17, 2024

Conversation

TheoBrigitte
Copy link
Member

This PR fixes the issue where the Alertmanager configuration sent is invalid, due to using output from config.Load which does produce an invalid configuration with all secrets replaced with .

What this PR does / why we need it

Checklist

  • Update changelog in CHANGELOG.md.
  • Follow deployment test procedure in the tests/manual_e2e directory and have a working branch.

@TheoBrigitte TheoBrigitte self-assigned this Dec 17, 2024
@TheoBrigitte TheoBrigitte force-pushed the alertmanager-controller branch from 1b25e48 to 5ee639c Compare December 17, 2024 11:25
@@ -46,6 +46,7 @@ func SetupAlertmanagerReconciler(mgr ctrl.Manager, conf config.Config) error {

// Setup the controller
return ctrl.NewControllerManagedBy(mgr).
Named("alertmanager").
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding this otherwise the controller shows up as "secret" in the logs

image

@TheoBrigitte TheoBrigitte marked this pull request as ready for review December 17, 2024 12:48
@TheoBrigitte TheoBrigitte requested a review from a team as a code owner December 17, 2024 12:48
@TheoBrigitte TheoBrigitte enabled auto-merge (squash) December 17, 2024 12:49
@TheoBrigitte TheoBrigitte merged commit ae3a611 into main Dec 17, 2024
9 checks passed
@TheoBrigitte TheoBrigitte deleted the alertmanager-controller branch December 17, 2024 13:16
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