-
Notifications
You must be signed in to change notification settings - Fork 820
feat: add TLS support for communication from the Ruler-->AM #3752
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
Conversation
bf30ece
to
b7b29fb
Compare
2aa0016
to
eea9780
Compare
e77a0e1
to
c5d9203
Compare
c5d9203
to
b310997
Compare
@@ -350,6 +350,26 @@ func NewAlertmanager(name string, flags map[string]string, image string) *Cortex | |||
) | |||
} | |||
|
|||
func NewAlertmanagerWithTLS(name string, flags map[string]string, image string) *CortexService { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To my understanding the only difference between this and NewAlertmanager
is the readiness probe. What's the problem making the readiness probe working with HTTPS too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only reason I didn't do this was because it required a change to the function parameters in the e2e
package that were rather far reaching. Would it be acceptable to do this in a separate PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. I haven't checked the complexity and it's not a big deal.
b0f0d50
to
3db66b5
Compare
Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com> add simple integration test generate documentation update changelog Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>
Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>
…ext, update changelog Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>
Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>
Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>
Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>
9a2e685
to
1d07701
Compare
Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>
Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @jtlisi for addressing my comments. I left more comments about the YAML / CLI naming (sorry for being annoying about it, but we're trying hard to keep some consistency).
Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I'd suggest to avoid embedding for notifier config.
pkg/ruler/ruler.go
Outdated
@@ -86,6 +86,8 @@ type Config struct { | |||
NotificationQueueCapacity int `yaml:"notification_queue_capacity"` | |||
// HTTP timeout duration when sending notifications to the Alertmanager. | |||
NotificationTimeout time.Duration `yaml:"notification_timeout"` | |||
// Client configs for interacting with the Alertmanager | |||
NotifierConfig `yaml:"alertmanager_client"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this embedded field instead of named field? Nothing else in this struct is using embedding.
Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks a lot for patiently addressing my feedback 🙏 🚀
What this PR does:
Which issue(s) this PR fixes:
Fixes #3751
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]