Skip to content

Commit

Permalink
Cluster checking
Browse files Browse the repository at this point in the history
Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>
  • Loading branch information
PrimalPimmy committed Jun 20, 2024
1 parent 19b47d9 commit 484eb11
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion operators/nephio-controller-manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import (
"k8s.io/client-go/tools/leaderelection/resourcelock"
"k8s.io/klog/v2/klogr"

"k8s.io/apimachinery/pkg/apis/meta/v1beta1"
"k8s.io/apimachinery/pkg/runtime"
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
ctrl "sigs.k8s.io/controller-runtime"
Expand All @@ -56,8 +57,8 @@ import (

//_ "github.com/nephio-project/nephio/controllers/pkg/reconcilers/ipam-specializer"
_ "github.com/nephio-project/nephio/controllers/pkg/reconcilers/repository"
_ "github.com/nephio-project/nephio/controllers/pkg/reconcilers/spire-bootstrap"
_ "github.com/nephio-project/nephio/controllers/pkg/reconcilers/token"
_ "github.com/nephio-project/nephio/controllers/pkg/reconcilers/spire-bootstrap"
//_ "github.com/nephio-project/nephio/controllers/pkg/reconcilers/vlan-specializer"
)

Expand Down Expand Up @@ -109,6 +110,13 @@ func main() {
os.Exit(1)
}

err = v1beta1.AddMetaToScheme(scheme)
if err != nil {
setupLog.Error(err, "cannot initializer schema with Cluster API(s)")
// klog.Errorf("error initializing scheme with Porch APIs: %s", err.Error())
os.Exit(1)
}

managerOptions := ctrl.Options{
Scheme: scheme,
MetricsBindAddress: metricsAddr,
Expand Down

0 comments on commit 484eb11

Please sign in to comment.