|
|
@@ -172,7 +172,9 @@ func (c *WebhookHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|
|
notifyOpts.Status = slack.StatusHelmFailed
|
|
|
notifyOpts.Info = err.Error()
|
|
|
|
|
|
- notifier.Notify(notifyOpts)
|
|
|
+ if !cluster.NotificationsDisabled {
|
|
|
+ notifier.Notify(notifyOpts)
|
|
|
+ }
|
|
|
|
|
|
c.HandleAPIError(w, r, apierrors.NewErrPassThroughToClient(
|
|
|
err,
|
|
|
@@ -186,7 +188,9 @@ func (c *WebhookHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|
|
notifyOpts.Status = slack.StatusHelmDeployed
|
|
|
notifyOpts.Version = rel.Version
|
|
|
|
|
|
- notifier.Notify(notifyOpts)
|
|
|
+ if !cluster.NotificationsDisabled {
|
|
|
+ notifier.Notify(notifyOpts)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
c.Config().AnalyticsClient.Track(analytics.ApplicationDeploymentWebhookTrack(&analytics.ApplicationDeploymentWebhookTrackOpts{
|