Skip to content

Commit

Permalink
Remove BareMetalAssets. (stolostron#534)
Browse files Browse the repository at this point in the history
Signed-off-by: xuezhaojun <[email protected]>

Signed-off-by: xuezhaojun <[email protected]>
  • Loading branch information
xuezhaojun authored Nov 7, 2022
1 parent adcae35 commit 6d0c91a
Show file tree
Hide file tree
Showing 108 changed files with 40 additions and 23,424 deletions.
11 changes: 0 additions & 11 deletions cmd/controller/app/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
actionv1beta1 "github.com/stolostron/cluster-lifecycle-api/action/v1beta1"
clusterinfov1beta1 "github.com/stolostron/cluster-lifecycle-api/clusterinfo/v1beta1"
"github.com/stolostron/cluster-lifecycle-api/imageregistry/v1alpha1"
inventoryv1alpha1 "github.com/stolostron/cluster-lifecycle-api/inventory/v1alpha1"
"github.com/stolostron/multicloud-operators-foundation/cmd/controller/app/options"
"github.com/stolostron/multicloud-operators-foundation/pkg/addon"
"github.com/stolostron/multicloud-operators-foundation/pkg/cache"
Expand All @@ -30,7 +29,6 @@ import (
"github.com/stolostron/multicloud-operators-foundation/pkg/controllers/clusterset/syncrolebinding"
"github.com/stolostron/multicloud-operators-foundation/pkg/controllers/gc"
"github.com/stolostron/multicloud-operators-foundation/pkg/controllers/imageregistry"
"github.com/stolostron/multicloud-operators-foundation/pkg/controllers/inventory"
"github.com/stolostron/multicloud-operators-foundation/pkg/helpers"
"github.com/stolostron/multicloud-operators-foundation/pkg/utils"
corev1 "k8s.io/api/core/v1"
Expand Down Expand Up @@ -61,7 +59,6 @@ var (

func init() {
_ = clientgoscheme.AddToScheme(scheme)
_ = inventoryv1alpha1.AddToScheme(scheme)
_ = hiveinternalv1alpha1.AddToScheme(scheme)
_ = hivev1.AddToScheme(scheme)
_ = clusterinfov1beta1.AddToScheme(scheme)
Expand Down Expand Up @@ -201,14 +198,6 @@ func Run(o *options.ControllerRunOptions, ctx context.Context) error {
}
}

// Setup reconciler
if o.EnableInventory {
if err = inventory.SetupWithManager(mgr); err != nil {
klog.Errorf("unable to setup inventory reconciler: %v", err)
return err
}
}

if err = clusterinfo.SetupWithManager(mgr, o.LogCertSecret); err != nil {
klog.Errorf("unable to setup clusterInfo reconciler: %v", err)
return err
Expand Down
6 changes: 0 additions & 6 deletions deploy/foundation/hub/resources/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,6 @@ rules:
- apiGroups: ["hive.openshift.io"]
resources: [ "syncsets"]
verbs: ["create", "update", "delete"]
- apiGroups: ["inventory.open-cluster-management.io"]
resources: ["baremetalassets", "baremetalassets/status"]
verbs: ["get", "list", "watch", "update", "delete"]
- apiGroups: ["inventory.open-cluster-management.io"]
resources: ["baremetalassets/finalizers"]
verbs: ["update"]
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["get", "create", "update"]
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion deploy/foundation/hub/resources/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ resources:
- crds/action.open-cluster-management.io_managedclusteractions.crd.yaml
- crds/internal.open-cluster-management.io_managedclusterinfos.crd.yaml
- crds/imageregistry.open-cluster-management.io_managedclusterimageregistries.crd.yaml
- crds/inventory.open-cluster-management.io_baremetalassets.crd.yaml
- crds/view.open-cluster-management.io_managedclusterviews.crd.yaml
- crds/hive.openshift.io_syncsets.yaml
- crds/hive.openshift.io_clusterdeployments.yaml
Expand Down
23 changes: 0 additions & 23 deletions docs/inventory/FAQs.md

This file was deleted.

Loading

0 comments on commit 6d0c91a

Please sign in to comment.