[feature request]improve filter manager in yurthub component
rambohe-ch opened this issue · comments
What would you like to be added:
In order to make the code of filter manager
more readable, i want to make the following improvements:
-
remove
--access-server-through-hub
parameter, because all components on node access kube-apiserver via yurthub if yurthub component is installed, it is not need to use this parameter to specify it again. -
add a new repo named
responsefilter
, and codes aboutResponseFilter
infilter/filter.go
andfilter/filter_test.go
files will be moved into this repo. -
add a new repo named
base
, and codes aboutFilters
andInitializers
infilter/filter.go
andfilter/filter_test.go
files will be moved into this repo. -
add a new repo named
approver
, andapprover.go
,approver_test.go
files will be moved into this repo. -
var(like DisabledInCloudMode and SupportedComponentsForFilter)
definitions infilter/constants.go
file and filters register will be removed into filecmd/yurthub/options/filters.go
-
const var
(like each filter name) definitions infilter/constants.go
will be removed into each filter.
others
/kind feature