Skip to content

Commit 64b98e1

Browse files
committedOct 14, 2024
remove replciate
Signed-off-by: myan <myan@redhat.com>
1 parent 5f5d6d4 commit 64b98e1

File tree

5 files changed

+4
-14
lines changed

5 files changed

+4
-14
lines changed
 

‎agent/pkg/controllers/inventory/inventory.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
"github.com/stolostron/multicluster-global-hub/agent/pkg/configs"
1212
"github.com/stolostron/multicluster-global-hub/agent/pkg/controllers/inventory/managedclusterinfo"
13-
"github.com/stolostron/multicluster-global-hub/agent/pkg/status/syncers/policies"
13+
"github.com/stolostron/multicluster-global-hub/agent/pkg/controllers/inventory/policy"
1414
"github.com/stolostron/multicluster-global-hub/pkg/transport"
1515
"github.com/stolostron/multicluster-global-hub/pkg/utils"
1616
)
@@ -34,7 +34,7 @@ func AddToManager(ctx context.Context, mgr ctrl.Manager, transportClient transpo
3434
if err := managedclusterinfo.AddManagedClusterInfoInventorySyncer(mgr, transportClient.GetRequester()); err != nil {
3535
return err
3636
}
37-
if err := policies.AddPolicyInventorySyncer(mgr, transportClient.GetRequester()); err != nil {
37+
if err := policy.AddPolicyInventorySyncer(mgr, transportClient.GetRequester()); err != nil {
3838
return err
3939
}
4040
inventoryCtrlStarted = true

‎agent/pkg/controllers/inventory/policy/policy_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Copyright Contributors to the Open Cluster Management project
33
// Policy Controller is used to send the policy create/update/delete to restful API
44

5-
package policies
5+
package policy
66

77
import (
88
"context"

‎agent/pkg/controllers/inventory/policy/policy_controller_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package policies
1+
package policy
22

33
import (
44
"context"

‎agent/pkg/status/syncers/policies/inventory_syncer.go

-6
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,7 @@ import (
1919
"sigs.k8s.io/controller-runtime/pkg/event"
2020
"sigs.k8s.io/controller-runtime/pkg/predicate"
2121

22-
<<<<<<< HEAD:agent/pkg/status/controller/policies/policy_controller.go
23-
"github.com/stolostron/multicluster-global-hub/agent/pkg/config"
24-
statusconfig "github.com/stolostron/multicluster-global-hub/agent/pkg/status/controller/config"
25-
"github.com/stolostron/multicluster-global-hub/pkg/constants"
26-
=======
2722
"github.com/stolostron/multicluster-global-hub/agent/pkg/configs"
28-
>>>>>>> 709bd7eb (spec):agent/pkg/status/syncers/policies/inventory_syncer.go
2923
"github.com/stolostron/multicluster-global-hub/pkg/transport"
3024
"github.com/stolostron/multicluster-global-hub/pkg/transport/requester"
3125
)

‎agent/pkg/status/syncers/policies/inventory_syncer_test.go

-4
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ import (
2020
"sigs.k8s.io/controller-runtime/pkg/manager"
2121
"sigs.k8s.io/controller-runtime/pkg/reconcile"
2222

23-
<<<<<<< HEAD
24-
"github.com/stolostron/multicluster-global-hub/pkg/constants"
25-
=======
2623
"github.com/stolostron/multicluster-global-hub/agent/pkg/configs"
27-
>>>>>>> 91fc932c (fix the ut)
2824
"github.com/stolostron/multicluster-global-hub/pkg/transport"
2925
)
3026

0 commit comments

Comments
 (0)