Remove Notifications from Jenkins API
This commit is contained in:
		
							parent
							
								
									204ea3f6b2
								
							
						
					
					
						commit
						31536d0339
					
				|  | @ -17,9 +17,9 @@ type JenkinsSpec struct { | ||||||
| 	// +optional
 | 	// +optional
 | ||||||
| 	SeedJobs []SeedJob `json:"seedJobs,omitempty"` | 	SeedJobs []SeedJob `json:"seedJobs,omitempty"` | ||||||
| 
 | 
 | ||||||
| 	// Notifications defines list of a services which are used to inform about Jenkins status
 | 	/*	// Notifications defines list of a services which are used to inform about Jenkins status
 | ||||||
| 		// Can be used to integrate chat services like Slack, Microsoft MicrosoftTeams or Mailgun
 | 		// Can be used to integrate chat services like Slack, Microsoft MicrosoftTeams or Mailgun
 | ||||||
| 	Notifications []Notification `json:"notifications,omitempty"` | 		Notifications []Notification `json:"notifications,omitempty"`*/ | ||||||
| 
 | 
 | ||||||
| 	// Service is Kubernetes service of Jenkins master HTTP pod
 | 	// Service is Kubernetes service of Jenkins master HTTP pod
 | ||||||
| 	// Defaults to :
 | 	// Defaults to :
 | ||||||
|  |  | ||||||
|  | @ -342,13 +342,6 @@ func (in *JenkinsSpec) DeepCopyInto(out *JenkinsSpec) { | ||||||
| 		*out = make([]SeedJob, len(*in)) | 		*out = make([]SeedJob, len(*in)) | ||||||
| 		copy(*out, *in) | 		copy(*out, *in) | ||||||
| 	} | 	} | ||||||
| 	if in.Notifications != nil { |  | ||||||
| 		in, out := &in.Notifications, &out.Notifications |  | ||||||
| 		*out = make([]Notification, len(*in)) |  | ||||||
| 		for i := range *in { |  | ||||||
| 			(*in)[i].DeepCopyInto(&(*out)[i]) |  | ||||||
| 		} |  | ||||||
| 	} |  | ||||||
| 	in.Service.DeepCopyInto(&out.Service) | 	in.Service.DeepCopyInto(&out.Service) | ||||||
| 	in.SlaveService.DeepCopyInto(&out.SlaveService) | 	in.SlaveService.DeepCopyInto(&out.SlaveService) | ||||||
| 	in.Backup.DeepCopyInto(&out.Backup) | 	in.Backup.DeepCopyInto(&out.Backup) | ||||||
|  |  | ||||||
|  | @ -1,14 +1,9 @@ | ||||||
| package notifications | package notifications | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	"fmt" |  | ||||||
| 	"github.com/pkg/errors" |  | ||||||
| 	"net/http" | 	"net/http" | ||||||
| 
 | 
 | ||||||
| 	"github.com/jenkinsci/kubernetes-operator/pkg/apis/jenkins/v1alpha2" | 	"github.com/jenkinsci/kubernetes-operator/pkg/apis/jenkins/v1alpha2" | ||||||
| 	"github.com/jenkinsci/kubernetes-operator/pkg/log" |  | ||||||
| 
 |  | ||||||
| 	k8sclient "sigs.k8s.io/controller-runtime/pkg/client" |  | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| const ( | const ( | ||||||
|  | @ -47,7 +42,7 @@ type Event struct { | ||||||
| 	MessageVerbose    string | 	MessageVerbose    string | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| type service interface { | /*type service interface { | ||||||
| 	Send(event Event, notificationConfig v1alpha2.Notification) error | 	Send(event Event, notificationConfig v1alpha2.Notification) error | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | @ -92,4 +87,4 @@ func notify(svc service, event Event, manifest v1alpha2.Notification) error { | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	return svc.Send(event, manifest) | 	return svc.Send(event, manifest) | ||||||
| } | }*/ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue