Skip to content

Commit

Permalink
resolve PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pasha-codefresh committed Nov 27, 2023
1 parent d9b2d5b commit 2e59eda
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions event_reporter/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ import (
servercache "github.com/argoproj/argo-cd/v2/server/cache"
argoutil "github.com/argoproj/argo-cd/v2/util/argo"
"github.com/argoproj/argo-cd/v2/util/env"
"github.com/argoproj/argo-cd/v2/util/rbac"
"github.com/argoproj/argo-cd/v2/util/security"
"github.com/argoproj/argo-cd/v2/util/settings"
log "github.com/sirupsen/logrus"
"k8s.io/apimachinery/pkg/watch"
Expand All @@ -37,11 +35,9 @@ type eventReporterController struct {
settingsMgr *settings.SettingsManager
appBroadcaster reporter.Broadcaster
applicationEventReporter reporter.ApplicationEventReporter
enf *rbac.Enforcer
cache *servercache.Cache
appLister applisters.ApplicationLister
ns string
enabledNamespaces []string
applicationServiceClient applicationpkg.ApplicationServiceClient
metricsServer *metrics.MetricsServer
}
Expand All @@ -60,18 +56,6 @@ func NewEventReporterController(appInformer cache.SharedIndexInformer, cache *se
}
}

func (c *eventReporterController) appNamespaceOrDefault(appNs string) string {
if appNs == "" {
return c.ns
} else {
return appNs
}
}

func (c *eventReporterController) isNamespaceEnabled(namespace string) bool {
return security.IsNamespaceEnabled(namespace, c.ns, c.enabledNamespaces)
}

func (c *eventReporterController) Run(ctx context.Context) {
var (
logCtx log.FieldLogger = log.StandardLogger()
Expand Down

0 comments on commit 2e59eda

Please sign in to comment.