mirror of
https://github.com/jenkinsci/kubernetes-operator.git
synced 2026-10-03 22:51:09 +02:00
Disabled notification feature
This commit is contained in:
@@ -4,9 +4,7 @@ import (
|
||||
"context"
|
||||
"crypto/sha256"
|
||||
"encoding/base64"
|
||||
er "errors"
|
||||
"fmt"
|
||||
"github.com/jenkinsci/kubernetes-operator/internal/notifier"
|
||||
"reflect"
|
||||
"strings"
|
||||
"time"
|
||||
@@ -126,20 +124,6 @@ func (r *ReconcileJenkinsBaseConfiguration) Reconcile() (reconcile.Result, jenki
|
||||
}
|
||||
|
||||
result, err = r.ensureBaseConfiguration(jenkinsClient)
|
||||
notificationChannel := make(chan *notifier.Notification)
|
||||
go notifier.Listen(notificationChannel)
|
||||
|
||||
notificationChannel <- ¬ifier.Notification{
|
||||
K8sClient: r.k8sClient,
|
||||
Jenkins: r.jenkins,
|
||||
Logger: r.logger,
|
||||
Information: ¬ifier.Information{
|
||||
CrName: r.jenkins.Name,
|
||||
ConfigurationType: "base",
|
||||
Status: notifier.StatusError,
|
||||
Error: er.New("failed to do something"),
|
||||
},
|
||||
}
|
||||
return result, jenkinsClient, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user