Skip to content

Commit 77f3f7f

Browse files
committed
Cleanup
Signed-off-by: Ben Perry <[email protected]>
1 parent 48b35c7 commit 77f3f7f

File tree

5 files changed

+2
-11
lines changed

5 files changed

+2
-11
lines changed

go.mod

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ module open-cluster-management.io/ocm
22

33
go 1.23.6
44

5-
replace open-cluster-management.io/api => github.com/bhperry/ocm-api v0.0.0-20250611151546-e02ef2723ba7
6-
75
require (
86
github.com/aws/aws-sdk-go-v2 v1.36.3
97
github.com/aws/aws-sdk-go-v2/config v1.29.14

go.sum

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
5858
github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
5959
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
6060
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
61-
github.com/bhperry/ocm-api v0.0.0-20250611151546-e02ef2723ba7 h1:fwhO8cw8SruZli+WK+psHeVb5IVMuWA2MtCSjhHWeTg=
62-
github.com/bhperry/ocm-api v0.0.0-20250611151546-e02ef2723ba7/go.mod h1:/OeqXycNBZQoe3WG6ghuWsMgsKGuMZrK8ZpsU6gWL0Y=
6361
github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM=
6462
github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ=
6563
github.com/bwmarrin/snowflake v0.3.0 h1:xm67bEhkKh6ij1790JB83OujPR5CzNe8QuQqAgISZN0=
@@ -493,7 +491,7 @@ k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 h1:M3sRQVHv7vB20Xc2ybTt7ODCeFj6J
493491
k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
494492
open-cluster-management.io/addon-framework v1.0.0 h1:ejTk4hPAJnwCSxQhY/tVDPg3SeH91lVfWqSaJcYiKwg=
495493
open-cluster-management.io/addon-framework v1.0.0/go.mod h1:Gw9zRGvuNJJ3XhTYanIuA7FFFw0EjtoE74l5OBZCZf8=
496-
open-cluster-management.io/api v1.0.0 h1:54QllH9DTudCk6VrGt0q8CDsE3MghqJeTaTN4RHZpE0=
494+
open-cluster-management.io/api v1.0.0 h1:TQ2Xq/bteFnsUukR4Ty4vmiAaCvenBL3hZXYFYz7q+U=
497495
open-cluster-management.io/api v1.0.0/go.mod h1:/OeqXycNBZQoe3WG6ghuWsMgsKGuMZrK8ZpsU6gWL0Y=
498496
open-cluster-management.io/sdk-go v1.0.0 h1:pIiAHM/hzV3rEw3LSMgZuAUiNgkBrn8hLxFvJM5frw0=
499497
open-cluster-management.io/sdk-go v1.0.0/go.mod h1:vkLwIDN9W+WBlrHgHxMl5ZoHRT+H5qOq3cXAk7U5AJc=

pkg/work/spoke/controllers/manifestcontroller/manifestwork_controller.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ type workReconcile interface {
4646
// ManifestWorkController is to reconcile the workload resources
4747
// fetched from hub cluster on spoke cluster.
4848
type ManifestWorkController struct {
49-
manifestWorkClient workv1client.ManifestWorkInterface
5049
manifestWorkPatcher patcher.Patcher[*workapiv1.ManifestWork, workapiv1.ManifestWorkSpec, workapiv1.ManifestWorkStatus]
5150
manifestWorkLister worklister.ManifestWorkNamespaceLister
5251
appliedManifestWorkClient workv1client.AppliedManifestWorkInterface
@@ -73,7 +72,6 @@ func NewManifestWorkController(
7372
validator auth.ExecutorValidator) factory.Controller {
7473

7574
controller := &ManifestWorkController{
76-
manifestWorkClient: manifestWorkClient,
7775
manifestWorkPatcher: patcher.NewPatcher[
7876
*workapiv1.ManifestWork, workapiv1.ManifestWorkSpec, workapiv1.ManifestWorkStatus](
7977
manifestWorkClient),

pkg/work/spoke/controllers/manifestcontroller/manifestwork_reconciler_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,12 @@ type testController struct {
4545

4646
func newController(t *testing.T, work *workapiv1.ManifestWork, appliedWork *workapiv1.AppliedManifestWork, mapper meta.RESTMapper) *testController {
4747
fakeWorkClient := fakeworkclient.NewSimpleClientset(work)
48-
manifestWorkClient := fakeWorkClient.WorkV1().ManifestWorks("cluster1")
4948
workInformerFactory := workinformers.NewSharedInformerFactoryWithOptions(fakeWorkClient, 5*time.Minute, workinformers.WithNamespace("cluster1"))
5049
spokeKubeClient := fakekube.NewSimpleClientset()
5150
controller := &ManifestWorkController{
52-
manifestWorkClient: manifestWorkClient,
5351
manifestWorkPatcher: patcher.NewPatcher[
5452
*workapiv1.ManifestWork, workapiv1.ManifestWorkSpec, workapiv1.ManifestWorkStatus](
55-
manifestWorkClient),
53+
fakeWorkClient.WorkV1().ManifestWorks("cluster1")),
5654
manifestWorkLister: workInformerFactory.Work().V1().ManifestWorks().Lister().ManifestWorks("cluster1"),
5755
appliedManifestWorkPatcher: patcher.NewPatcher[
5856
*workapiv1.AppliedManifestWork, workapiv1.AppliedManifestWorkSpec, workapiv1.AppliedManifestWorkStatus](

vendor/modules.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1938,4 +1938,3 @@ sigs.k8s.io/structured-merge-diff/v4/value
19381938
sigs.k8s.io/yaml
19391939
sigs.k8s.io/yaml/goyaml.v2
19401940
sigs.k8s.io/yaml/goyaml.v3
1941-
# open-cluster-management.io/api => github.com/bhperry/ocm-api v0.0.0-20250611151546-e02ef2723ba7

0 commit comments

Comments
 (0)