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

alertmanagerConfig: support set require_tls to false #624

Conversation

Haleygo
Copy link
Contributor

@Haleygo Haleygo commented Apr 10, 2023

fix #623

@Haleygo
Copy link
Contributor Author

Haleygo commented Apr 10, 2023

@f41gh7 PTAL :)

@Haleygo Haleygo force-pushed the VMAlertmanagerConfig-support-email-config-without-tls branch from e57b46e to 61ef1f3 Compare April 11, 2023 00:31
@@ -574,7 +574,10 @@ func (cb *configBuilder) buildWebhook(wh operatorv1beta1.WebhookConfig) error {
}

temp = append(temp, yaml.MapItem{Key: "url", Value: url})
temp = append(temp, yaml.MapItem{Key: "max_alerts", Value: wh.MaxAlerts})

if wh.MaxAlerts != 0 {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

only show maxalert in config when not 0

Copy link
Collaborator

@f41gh7 f41gh7 left a comment

Choose a reason for hiding this comment

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

LGTM

@f41gh7 f41gh7 merged commit 892e465 into VictoriaMetrics:master Apr 11, 2023
1 check failed
@f41gh7
Copy link
Collaborator

f41gh7 commented Apr 11, 2023

Thanks for contribution!

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.

VMAlertmanagerConfig: EmailConfig.require_tls always set to true
2 participants