We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df7f376 commit 0901640Copy full SHA for 0901640
internal/controller/suite_test.go
@@ -11,6 +11,9 @@ import (
11
"testing"
12
"time"
13
14
+ "k8s.io/utils/ptr"
15
+ "sigs.k8s.io/controller-runtime/pkg/config"
16
+
17
"github.com/ironcore-dev/metal-operator/internal/registry"
18
19
"github.com/ironcore-dev/metal-operator/internal/api/macdb"
@@ -122,6 +125,11 @@ func SetupTest() *corev1.Namespace {
122
125
123
126
k8sManager, err := ctrl.NewManager(cfg, ctrl.Options{
124
127
Scheme: scheme.Scheme,
128
+ Controller: config.Controller{
129
+ // need to skip unique controller name validation
130
+ // since all tests need a dedicated controller
131
+ SkipNameValidation: ptr.To(true),
132
+ },
133
})
134
Expect(err).ToNot(HaveOccurred())
135
0 commit comments