From c86fd3d5bd376918ba05760a19858b8692ca8d34 Mon Sep 17 00:00:00 2001 From: Tom Wilkie Date: Thu, 14 Jul 2016 14:45:06 +0100 Subject: [PATCH] Add notification config for wcloud --- cmd/wcloud/types.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmd/wcloud/types.go b/cmd/wcloud/types.go index 16e6b2622..d2ad5e70c 100644 --- a/cmd/wcloud/types.go +++ b/cmd/wcloud/types.go @@ -21,4 +21,12 @@ type Config struct { RepoPath string `json:"repo_path" yaml:"repo_path"` RepoKey string `json:"repo_key" yaml:"repo_key"` KubeconfigPath string `json:"kubeconfig_path" yaml:"kubeconfig_path"` + + Notifications []NotificationConfig `json:"notification" yaml:"notification"` +} + +// NotificationConfig describes how to send notifications +type NotificationConfig struct { + SlackWebhookURL string `json:"slack_webhook_url" yaml:"slack_webhook_url"` + SlackUsername string `json:"slack_username" yaml:"slack_username"` }