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 about ResponseFilter in filter/filter.go and filter/filter_test.go files will be moved into this repo.
add a new repo named base, and codes about Filters and Initializers in filter/filter.go and filter/filter_test.go files will be moved into this repo.
add a new repo named approver, and approver.go, approver_test.go files will be moved into this repo.
var(like DisabledInCloudMode and SupportedComponentsForFilter) definitions in filter/constants.go file and filters register will be removed into file cmd/yurthub/options/filters.go
const var(like each filter name) definitions in filter/constants.go will be removed into each filter.
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