Skip to content

Commit

Permalink
fix: skip debug controller name validation
Browse files Browse the repository at this point in the history
  • Loading branch information
tallaxes committed Dec 4, 2024
1 parent 17c854a commit c370ef2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/pkg/debug/nodeclaim.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"fmt"
"time"

"github.com/samber/lo"
"k8s.io/apimachinery/pkg/api/errors"
controllerruntime "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
Expand Down Expand Up @@ -75,6 +76,6 @@ func (c *NodeClaimController) Register(_ context.Context, m manager.Manager) err
return c.GetInfo(oldNodeClaim) != c.GetInfo(newNodeClaim)
},
}).
WithOptions(controller.Options{MaxConcurrentReconciles: 10}).
WithOptions(controller.Options{MaxConcurrentReconciles: 10, SkipNameValidation: lo.ToPtr(true)}).
Complete(c)
}

0 comments on commit c370ef2

Please sign in to comment.