openyurtio / openyurt

OpenYurt - Extending your native Kubernetes to edge(project under CNCF)

Home Page:https://openyurt.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[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 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.

others
/kind feature