Skip to content

Commit

Permalink
fix: skip SKR controller name validation (#917)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmilos77 authored Dec 20, 2024
1 parent 96c4de5 commit 7902bc2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/skr/runtime/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/client-go/rest"
"k8s.io/klog/v2"
"k8s.io/utils/ptr"
"net/http"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/cluster"
Expand Down Expand Up @@ -119,12 +120,13 @@ func (m *skrManager) GetLogger() logr.Logger {
}

func (m *skrManager) GetControllerOptions() config.Controller {
resulut := config.Controller{
result := config.Controller{
GroupKindConcurrency: nil,
MaxConcurrentReconciles: 1,
CacheSyncTimeout: 0,
RecoverPanic: nil,
NeedLeaderElection: nil,
SkipNameValidation: ptr.To(true),
}
return resulut
return result
}

0 comments on commit 7902bc2

Please sign in to comment.