@@ -16,6 +16,7 @@ import (
16
16
ctrl "sigs.k8s.io/controller-runtime"
17
17
"sigs.k8s.io/controller-runtime/pkg/builder"
18
18
"sigs.k8s.io/controller-runtime/pkg/client"
19
+ controllerconfig "sigs.k8s.io/controller-runtime/pkg/config"
19
20
"sigs.k8s.io/controller-runtime/pkg/event"
20
21
"sigs.k8s.io/controller-runtime/pkg/handler"
21
22
"sigs.k8s.io/controller-runtime/pkg/manager"
@@ -52,7 +53,6 @@ func (c *CRDWatcher) SetupWithManager(ctx context.Context, mgr manager.Manager)
52
53
53
54
for _ , api := range apis {
54
55
slashedName := fmt .Sprintf ("%s/%s" , api .Group , api .Kind )
55
-
56
56
if _ , ok := bundleGroupAndKind [slashedName ]; ! ok {
57
57
bundleGroupAndKind [slashedName ] = sets.Set [string ]{}
58
58
}
@@ -140,7 +140,11 @@ func (c *CRDWatcher) keyFunction(group, kind string) string {
140
140
}
141
141
142
142
func (c * CRDWatcher ) register (ctx context.Context , group string , versions []string , kind string ) error {
143
+ skipControllerNameValidation := true
143
144
mgr , _ := ctrl .NewManager (ctrl .GetConfigOrDie (), ctrl.Options {
145
+ Controller : controllerconfig.Controller {
146
+ SkipNameValidation : & skipControllerNameValidation ,
147
+ },
144
148
Scheme : c .Client .Scheme (),
145
149
Metrics : metricsserver.Options {
146
150
BindAddress : "0" ,
0 commit comments