Skip to content

Commit

Permalink
test: Fix failures in the test monitor (#6998)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis authored Sep 12, 2024
1 parent 322b92a commit c925158
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion test/pkg/debug/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,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 @@ -77,6 +78,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)
}
3 changes: 2 additions & 1 deletion test/pkg/debug/nodeclaim.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,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 @@ -73,6 +74,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)
}
2 changes: 1 addition & 1 deletion test/pkg/debug/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,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 c925158

Please sign in to comment.