Skip to content

Commit

Permalink
MESH-000: Remove unused mock handlers and EnvoyFilterController from …
Browse files Browse the repository at this point in the history
…codebase (#844)
  • Loading branch information
Punakshi Chaand committed Jan 7, 2025
1 parent 2ed99fb commit 0da4b13
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 362 deletions.
1 change: 0 additions & 1 deletion admiral/pkg/clusters/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ type RemoteController struct {
SidecarController *istio.SidecarController
RolloutController *admiral.RolloutController
RoutingPolicyController *admiral.RoutingPolicyController
EnvoyFilterController *admiral.EnvoyFilterController
OutlierDetectionController *admiral.OutlierDetectionController
ClientConnectionConfigController *admiral.ClientConnectionConfigController
JobController *admiral.JobController
Expand Down
114 changes: 0 additions & 114 deletions admiral/pkg/controller/admiral/envoyfilter.go

This file was deleted.

219 changes: 0 additions & 219 deletions admiral/pkg/controller/admiral/envoyfilter_test.go

This file was deleted.

28 changes: 0 additions & 28 deletions admiral/pkg/test/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,34 +284,6 @@ func (m *MockRoutingPolicyHandler) Updated(ctx context.Context, obj *admiralV1.R
return nil
}

type MockTrafficConfigHandler struct {
Obj *admiralV1.TrafficConfig
}

func (m *MockTrafficConfigHandler) Added(ctx context.Context, obj *admiralV1.TrafficConfig) {
m.Obj = obj
}

func (m *MockTrafficConfigHandler) Deleted(ctx context.Context, obj *admiralV1.TrafficConfig) {
m.Obj = nil
}

func (m *MockTrafficConfigHandler) Updated(ctx context.Context, obj *admiralV1.TrafficConfig) {
m.Obj = obj
}

type MockEnvoyFilterHandler struct {
}

func (m *MockEnvoyFilterHandler) Added(context.Context, *v1alpha32.EnvoyFilter) {
}

func (m *MockEnvoyFilterHandler) Deleted(context.Context, *v1alpha32.EnvoyFilter) {
}

func (m *MockEnvoyFilterHandler) Updated(context.Context, *v1alpha32.EnvoyFilter) {
}

type MockRolloutsGetter struct{}
type FakeRolloutsImpl struct{}

Expand Down

0 comments on commit 0da4b13

Please sign in to comment.