feat: golangci-lint config and fixes

This commit is contained in:
TheiLLeniumStudios
2026-01-08 10:25:05 +01:00
parent bd030fe795
commit 5f7f3a57bb
36 changed files with 869 additions and 135 deletions
+2 -1
View File
@@ -8,9 +8,10 @@ import (
"runtime"
"time"
"github.com/stakater/Reloader/internal/pkg/config"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"github.com/stakater/Reloader/internal/pkg/config"
)
const (
+2 -1
View File
@@ -6,11 +6,12 @@ import (
"testing"
"github.com/go-logr/logr"
"github.com/stakater/Reloader/internal/pkg/config"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/client/fake"
"github.com/stakater/Reloader/internal/pkg/config"
)
// testLogger returns a no-op logger for testing.
+3 -2
View File
@@ -6,11 +6,12 @@ import (
"os"
"github.com/go-logr/logr"
"github.com/stakater/Reloader/internal/pkg/config"
"github.com/stakater/Reloader/internal/pkg/workload"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
"sigs.k8s.io/controller-runtime/pkg/client"
"github.com/stakater/Reloader/internal/pkg/config"
"github.com/stakater/Reloader/internal/pkg/workload"
)
// Publisher handles creating and updating the metadata ConfigMap.