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 c370ef2 commit 35cdaba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/pkg/debug/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"fmt"
"time"

"github.com/samber/lo"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
controllerruntime "sigs.k8s.io/controller-runtime"
Expand Down Expand Up @@ -79,6 +80,6 @@ func (c *NodeController) Register(ctx context.Context, m manager.Manager) error
return o.GetLabels()[karpv1.NodePoolLabelKey] != ""
}),
)).
WithOptions(controller.Options{MaxConcurrentReconciles: 10}).
WithOptions(controller.Options{MaxConcurrentReconciles: 10, SkipNameValidation: lo.ToPtr(true)}).
Complete(c)
}
2 changes: 1 addition & 1 deletion test/pkg/debug/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@ func (c *PodController) Register(_ context.Context, m manager.Manager) error {
return o.GetNamespace() != "kube-system"
}),
)).
WithOptions(controller.Options{MaxConcurrentReconciles: 10}).
WithOptions(controller.Options{MaxConcurrentReconciles: 10, SkipNameValidation: lo.ToPtr(true)}).
Complete(c)
}

0 comments on commit 35cdaba

Please sign in to comment.