@@ -66,25 +66,33 @@ type AlertmanagerNotificationsSpec struct {
6666 Webhook AlertmanagerWebhookNotificationSpec `json:"webhook"`
6767}
6868
69+ type AlertmanagerEmailSecretSpec struct {
70+ Name string `json:"name"`
71+ Key string `json:"key"`
72+ Password string `json:"password"`
73+ }
74+
75+ type AlertmanagerWebhookSecretSpec struct {
76+ Name string `json:"name"`
77+ Key string `json:"key"`
78+ URL string `json:"url"`
79+ }
80+
6981type AlertmanagerEmailNotificationSpec struct {
70- Enabled bool `json:"enabled"`
71- To string `json:"to"`
72- From string `json:"from"`
73- Smarthost string `json:"smarthost"`
74- AuthUsername string `json:"authUsername"`
75- AuthSecretName string `json:"authSecretName"`
76- AuthSecretKey string `json:"authSecretKey"`
77- AuthPassword string `json:"authPassword"`
78- RequireTLS bool `json:"requireTLS"`
79- SendResolved bool `json:"sendResolved"`
82+ Enabled bool `json:"enabled"`
83+ To string `json:"to"`
84+ From string `json:"from"`
85+ Smarthost string `json:"smarthost"`
86+ AuthUsername string `json:"authUsername"`
87+ Secret AlertmanagerEmailSecretSpec `json:"secret"`
88+ RequireTLS bool `json:"requireTLS"`
89+ SendResolved bool `json:"sendResolved"`
8090}
8191
8292type AlertmanagerWebhookNotificationSpec struct {
83- Enabled bool `json:"enabled"`
84- URLSecretName string `json:"urlSecretName"`
85- URLSecretKey string `json:"urlSecretKey"`
86- URL string `json:"url"`
87- SendResolved bool `json:"sendResolved"`
93+ Enabled bool `json:"enabled"`
94+ Secret AlertmanagerWebhookSecretSpec `json:"secret"`
95+ SendResolved bool `json:"sendResolved"`
8896}
8997
9098type OpscenterHelmSpec struct {
0 commit comments