Skip to content

Commit 2b0c0d9

Browse files
committed
Allowlist controller: remove unused scheme field
The runtime.Scheme field was never used - controller creates objects directly via client.Create() without needing type conversion or owner references. Assisted-By: Claude <noreply@anthropic.com> Signed-off-by: Konstantinos Karampogias <karampok@gmail.com>
1 parent a3a44ca commit 2b0c0d9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pkg/controller/allowlist/allowlist_controller.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
apierrors "k8s.io/apimachinery/pkg/api/errors"
2121
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2222
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
23-
"k8s.io/apimachinery/pkg/runtime"
2423
"k8s.io/apimachinery/pkg/types"
2524
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
2625
"k8s.io/apimachinery/pkg/util/wait"
@@ -80,7 +79,6 @@ var _ reconcile.Reconciler = &ReconcileAllowlist{}
8079

8180
type ReconcileAllowlist struct {
8281
client cnoclient.Client
83-
scheme *runtime.Scheme
8482
status *statusmanager.StatusManager
8583
}
8684

0 commit comments

Comments
 (0)