chore(lint): enable typeDefFirst rule from go-critic (#23414)

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2025-06-16 18:09:08 +02:00
committed by GitHub
parent 114693dcc2
commit 6b24fcb32c
4 changed files with 30 additions and 31 deletions

View File

@@ -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)