Disabled notification feature
This commit is contained in:
parent
5cbd21b03c
commit
61d5311ac2
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue