Remove unused scheme passed to reconcilers (#121)

The scheme is part of the manager so we do not need to pass it in the
struct.
This commit is contained in:
Philip Laine
2026-03-12 21:39:56 +01:00
committed by GitHub
parent 81f7a2bd51
commit 0fde3631b2
13 changed files with 23 additions and 57 deletions
+4 -5
View File
@@ -7,23 +7,22 @@ import (
"strconv"
"strings"
"github.com/go-logr/logr"
netbird "github.com/netbirdio/netbird/shared/management/client/rest"
"github.com/netbirdio/netbird/shared/management/http/api"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/types"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
"github.com/go-logr/logr"
netbirdiov1 "github.com/netbirdio/kubernetes-operator/api/v1"
"github.com/netbirdio/kubernetes-operator/internal/util"
netbird "github.com/netbirdio/netbird/shared/management/client/rest"
"github.com/netbirdio/netbird/shared/management/http/api"
)
// NBPolicyReconciler reconciles a NBPolicy object
type NBPolicyReconciler struct {
client.Client
Scheme *runtime.Scheme
ClusterName string
APIKey string
ManagementURL string