Skip to content

Commit

Permalink
Merge branch 'main' into fix/e2e-karpetner-install-diff
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantbiggs authored Sep 13, 2024
2 parents f877906 + 98e98de commit 5dfd423
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/suites/chaos/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (
"k8s.io/client-go/tools/cache"
controllerruntime "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/controller"
"sigs.k8s.io/controller-runtime/pkg/manager"
"sigs.k8s.io/controller-runtime/pkg/predicate"
"sigs.k8s.io/controller-runtime/pkg/reconcile"
Expand Down Expand Up @@ -168,6 +169,7 @@ func (t *taintAdder) Reconcile(ctx context.Context, req reconcile.Request) (reco
func (t *taintAdder) Builder(mgr manager.Manager) *controllerruntime.Builder {
return controllerruntime.NewControllerManagedBy(mgr).
For(&corev1.Node{}).
WithOptions(controller.Options{SkipNameValidation: lo.ToPtr(true)}).
WithEventFilter(predicate.NewPredicateFuncs(func(obj client.Object) bool {
node := obj.(*corev1.Node)
if _, ok := node.Labels[coretest.DiscoveryLabel]; !ok {
Expand Down

0 comments on commit 5dfd423

Please sign in to comment.