From 7713f4f24c6d497a2cec0006dd4461dc804c905b Mon Sep 17 00:00:00 2001 From: Amanuel Engeda <74629455+engedaam@users.noreply.github.com> Date: Thu, 4 Apr 2024 16:58:03 -0700 Subject: [PATCH] chore: Bump Karpetner Version (#5986) --- go.mod | 2 +- go.sum | 4 ++-- pkg/operator/operator.go | 9 --------- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/go.mod b/go.mod index ab7450d39717..a41cd6f7cf20 100644 --- a/go.mod +++ b/go.mod @@ -28,7 +28,7 @@ require ( k8s.io/utils v0.0.0-20240102154912-e7106e64919e knative.dev/pkg v0.0.0-20231010144348-ca8c009405dd sigs.k8s.io/controller-runtime v0.17.2 - sigs.k8s.io/karpenter v0.35.1-0.20240401162338-a1c2c16bd5d9 + sigs.k8s.io/karpenter v0.35.1-0.20240404200702-545d88a836d4 sigs.k8s.io/yaml v1.4.0 ) diff --git a/go.sum b/go.sum index 05b24040dc0d..81643e3546c4 100644 --- a/go.sum +++ b/go.sum @@ -759,8 +759,8 @@ sigs.k8s.io/controller-runtime v0.17.2 h1:FwHwD1CTUemg0pW2otk7/U5/i5m2ymzvOXdbeG sigs.k8s.io/controller-runtime v0.17.2/go.mod h1:+MngTvIQQQhfXtwfdGw/UOQ/aIaqsYywfCINOtwMO/s= sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo= sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0= -sigs.k8s.io/karpenter v0.35.1-0.20240401162338-a1c2c16bd5d9 h1:cGovLkuGYjUvfo0mCXHqBQHW2Q1BpjGDq3zAkWvhjEk= -sigs.k8s.io/karpenter v0.35.1-0.20240401162338-a1c2c16bd5d9/go.mod h1:3XwJdKrr/gQwMzGjHXq897+m7XlIFXYZfCjftMjg86o= +sigs.k8s.io/karpenter v0.35.1-0.20240404200702-545d88a836d4 h1:eb3ubw9tFiV62Gq1Ci5r5BCJ8OlKu2Mqf7h3tJIRe0U= +sigs.k8s.io/karpenter v0.35.1-0.20240404200702-545d88a836d4/go.mod h1:fieFojxOec/l0tDmFT7R+g/Y+SGQbL9VlcYO8xb3sLo= sigs.k8s.io/structured-merge-diff/v4 v4.4.1 h1:150L+0vs/8DA78h1u02ooW1/fFq/Lwr+sGiqlzvrtq4= sigs.k8s.io/structured-merge-diff/v4 v4.4.1/go.mod h1:N8hJocpFajUSSeSJ9bOZ77VzejKZaXsTtZo4/u7Io08= sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= diff --git a/pkg/operator/operator.go b/pkg/operator/operator.go index 41c7e048c09e..4b09ee7a0927 100644 --- a/pkg/operator/operator.go +++ b/pkg/operator/operator.go @@ -45,7 +45,6 @@ import ( "k8s.io/client-go/transport" "knative.dev/pkg/logging" "knative.dev/pkg/ptr" - "sigs.k8s.io/controller-runtime/pkg/client" corev1beta1 "sigs.k8s.io/karpenter/pkg/apis/v1beta1" "sigs.k8s.io/karpenter/pkg/operator" @@ -177,14 +176,6 @@ func NewOperator(ctx context.Context, operator *operator.Operator) (context.Cont launchTemplateProvider, ) - lo.Must0(operator.Manager.GetFieldIndexer().IndexField(ctx, &corev1beta1.NodeClaim{}, "spec.nodeClassRef.name", func(o client.Object) []string { - nc := o.(*corev1beta1.NodeClaim) - if nc.Spec.NodeClassRef == nil { - return []string{} - } - return []string{nc.Spec.NodeClassRef.Name} - }), "failed to setup nodeclaim indexer") - return ctx, &Operator{ Operator: operator, Session: sess,