Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wip] Handler rework #193

Closed
wants to merge 5 commits into from
Closed

[wip] Handler rework #193

wants to merge 5 commits into from

Conversation

ibihim
Copy link
Collaborator

@ibihim ibihim commented Aug 18, 2022

What

Streamline middleware logic.
Prepare it to become more like k8s/filters.
Prepare it to test it (living outside of func main).

Why

It is pretty messy and easy to break and not tested well enough.

TODOs

  • Add unit tests for every middleware.
  • Replace authentication with filter.WithAuthentication.
  • Move server logic into server pkg.
  • Move middleware logic into filters file.
  • Make gap between k8s-style-logic and krp smaller.

Ref

Fixes

#162 (comment)
#162 (comment)
#162 (comment)
#162 (comment)
#162 (comment)
#162 (comment)

Prepares

#162 (comment)
#162 (comment)
#162 (comment)
#162 (comment)

@ibihim ibihim added the v1 label Aug 26, 2022
@ibihim ibihim removed the v1 label Oct 6, 2022
Signed-off-by: Krzysztof Ostrowski <kostrows@redhat.com>
Signed-off-by: Krzysztof Ostrowski <kostrows@redhat.com>
Signed-off-by: Krzysztof Ostrowski <kostrows@redhat.com>
Signed-off-by: Krzysztof Ostrowski <kostrows@redhat.com>
Signed-off-by: Krzysztof Ostrowski <kostrows@redhat.com>
@ibihim
Copy link
Collaborator Author

ibihim commented Oct 10, 2022

I will split it up in smaller PRs.

@ibihim ibihim closed this Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant