mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-20 01:28:45 +01:00
chore(lint): enable typeDefFirst rule from go-critic (#23414)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -54,6 +54,14 @@ type NotificationController interface {
|
||||
Init(ctx context.Context) error
|
||||
}
|
||||
|
||||
type notificationController struct {
|
||||
ctrl controller.NotificationController
|
||||
appInformer cache.SharedIndexInformer
|
||||
appProjInformer cache.SharedIndexInformer
|
||||
secretInformer cache.SharedIndexInformer
|
||||
configMapInformer cache.SharedIndexInformer
|
||||
}
|
||||
|
||||
func NewController(
|
||||
k8sClient kubernetes.Interface,
|
||||
client dynamic.Interface,
|
||||
@@ -171,14 +179,6 @@ func newInformer(resClient dynamic.ResourceInterface, controllerNamespace string
|
||||
return informer
|
||||
}
|
||||
|
||||
type notificationController struct {
|
||||
ctrl controller.NotificationController
|
||||
appInformer cache.SharedIndexInformer
|
||||
appProjInformer cache.SharedIndexInformer
|
||||
secretInformer cache.SharedIndexInformer
|
||||
configMapInformer cache.SharedIndexInformer
|
||||
}
|
||||
|
||||
func (c *notificationController) Init(ctx context.Context) error {
|
||||
// resolve certificates using injected "argocd-tls-certs-cm" ConfigMap
|
||||
httputil.SetCertResolver(argocert.GetCertificateForConnect)
|
||||
|
||||
Reference in New Issue
Block a user