From fd7aab40f29e4dc682717500e892f2c2ed3ad9bc Mon Sep 17 00:00:00 2001 From: Yuki Iwai Date: Fri, 11 Oct 2024 04:15:20 +0900 Subject: [PATCH] KEP-2170: Remove unneeded scheme field from the internal TrainingRuntime Signed-off-by: Yuki Iwai --- pkg/runtime.v2/core/trainingruntime.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/runtime.v2/core/trainingruntime.go b/pkg/runtime.v2/core/trainingruntime.go index 179b7c2835..331380c312 100644 --- a/pkg/runtime.v2/core/trainingruntime.go +++ b/pkg/runtime.v2/core/trainingruntime.go @@ -22,7 +22,6 @@ import ( "fmt" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - apiruntime "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/util/validation/field" "k8s.io/utils/ptr" @@ -44,7 +43,6 @@ var ( type TrainingRuntime struct { framework *fwkcore.Framework client client.Client - scheme *apiruntime.Scheme } var TrainingRuntimeGroupKind = schema.GroupKind{ @@ -67,7 +65,6 @@ func NewTrainingRuntime(ctx context.Context, c client.Client, indexer client.Fie trainingRuntimeFactory = &TrainingRuntime{ framework: fwk, client: c, - scheme: c.Scheme(), } return trainingRuntimeFactory, nil }