Skip to content

Commit

Permalink
change to corev1beta1
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie McBride authored and Charlie McBride committed Mar 11, 2024
1 parent 0babd22 commit 1c97f37
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/suites/chaos/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ import (

"github.com/Azure/karpenter-provider-azure/test/pkg/debug"
"github.com/Azure/karpenter-provider-azure/test/pkg/environment/azure"
"sigs.k8s.io/karpenter/pkg/apis/v1alpha5"
corev1beta1 "sigs.k8s.io/karpenter/pkg/apis/v1beta1"
"sigs.k8s.io/karpenter/pkg/test"
nodeutils "sigs.k8s.io/karpenter/pkg/utils/node"
Expand Down Expand Up @@ -198,7 +197,7 @@ func startNodeCountMonitor(ctx context.Context, kubeClient client.Client) {
deletedNodes := atomic.Int64{}

factory := informers.NewSharedInformerFactoryWithOptions(env.KubeClient, time.Second*30,
informers.WithTweakListOptions(func(l *metav1.ListOptions) { l.LabelSelector = v1alpha5.ProvisionerNameLabelKey }))
informers.WithTweakListOptions(func(l *metav1.ListOptions) { l.LabelSelector = corev1beta1.NodePoolLabelKey }))
nodeInformer := factory.Core().V1().Nodes().Informer()
_, err := nodeInformer.AddEventHandler(cache.ResourceEventHandlerFuncs{
AddFunc: func(_ interface{}) {
Expand Down

0 comments on commit 1c97f37

Please sign in to comment.