1
0
mirror of https://github.com/rancher/types.git synced 2025-09-24 19:39:13 +00:00

Support set http_proxy config on Rancher notifier

Problem:
Not support http_proxy setting now
Solution:
Add http_proxy configure for slack, pagerduty, wechat, webhook

Issue:
https://github.com/rancher/rancher/issues/17885
This commit is contained in:
Aiwantaozi
2019-06-10 11:09:46 +08:00
committed by Alena Prokharchyk
parent 7443c739c5
commit be1c347b32

View File

@@ -291,14 +291,17 @@ type SMTPConfig struct {
type SlackConfig struct {
DefaultRecipient string `json:"defaultRecipient,omitempty" norman:"required"`
URL string `json:"url,omitempty" norman:"required"`
*HTTPClientConfig
}
type PagerdutyConfig struct {
ServiceKey string `json:"serviceKey,omitempty" norman:"required"`
*HTTPClientConfig
}
type WebhookConfig struct {
URL string `json:"url,omitempty" norman:"required"`
*HTTPClientConfig
}
type WechatConfig struct {
@@ -307,6 +310,7 @@ type WechatConfig struct {
Agent string `json:"agent,omitempty" norman:"required"`
Corp string `json:"corp,omitempty" norman:"required"`
RecipientType string `json:"recipientType,omitempty" norman:"required,options=tag|party|user,default=party"`
*HTTPClientConfig
}
type NotifierStatus struct {
@@ -316,3 +320,9 @@ type AlertSystemImages struct {
AlertManager string `json:"alertManager,omitempty"`
AlertManagerHelper string `json:"alertManagerHelper,omitempty"`
}
// HTTPClientConfig configures an HTTP client.
type HTTPClientConfig struct {
// HTTP proxy server to use to connect to the targets.
ProxyURL string `json:"proxyUrl,omitempty"`
}