From 16fd981703b99cc1716bcac575e81235953862b7 Mon Sep 17 00:00:00 2001 From: Jakub Al-Khalili Date: Thu, 1 Aug 2019 16:36:26 +0200 Subject: [PATCH] Add notification to api --- pkg/apis/jenkins/v1alpha2/jenkins_types.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/apis/jenkins/v1alpha2/jenkins_types.go b/pkg/apis/jenkins/v1alpha2/jenkins_types.go index 25698f18..d9634fd6 100644 --- a/pkg/apis/jenkins/v1alpha2/jenkins_types.go +++ b/pkg/apis/jenkins/v1alpha2/jenkins_types.go @@ -18,7 +18,8 @@ type JenkinsSpec struct { SeedJobs []SeedJob `json:"seedJobs,omitempty"` // Notification defines services which are used to inform about Jenkins behavior - Notification []Notification `json:"notification,omitempty"` + // Can be used to integrate chat services like Slack or Email services like Mailgun + Notification Notification `json:"notifications,omitempty"` // Service is Kubernetes service of Jenkins master HTTP pod // Defaults to : @@ -488,9 +489,6 @@ const ( type JenkinsNotificationLogLevel string const ( - // LogLevelNone - No logs - LogLevelNone JenkinsNotificationLogLevel = "" - // LogLevelWarning - Only Warnings LogLevelWarning JenkinsNotificationLogLevel = "warning"