chore(ci): upgrade golangci-lint to v2 (#22484)

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
Michael Crenshaw
2025-03-27 12:37:52 -04:00
committed by GitHub
parent 4a987ddbf2
commit 0ec46f6857
150 changed files with 817 additions and 815 deletions

View File

@@ -191,7 +191,7 @@ func (c *notificationController) Init(ctx context.Context) error {
go c.configMapInformer.Run(ctx.Done())
if !cache.WaitForCacheSync(ctx.Done(), c.appInformer.HasSynced, c.appProjInformer.HasSynced, c.secretInformer.HasSynced, c.configMapInformer.HasSynced) {
return errors.New("Timed out waiting for caches to sync")
return errors.New("timed out waiting for caches to sync")
}
return nil
}

View File

@@ -166,7 +166,7 @@ func TestInitTimeout(t *testing.T) {
err = nc.Init(ctx)
// Expect an error & add assertion for the error message
assert.EqualError(t, err, "Timed out waiting for caches to sync")
assert.EqualError(t, err, "timed out waiting for caches to sync")
}
func TestCheckAppNotInAdditionalNamespaces(t *testing.T) {