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

Add internal provider #5815

Merged
merged 11 commits into from Nov 14, 2019
Merged

Add internal provider #5815

merged 11 commits into from Nov 14, 2019

Conversation

ldez
Copy link
Member

@ldez ldez commented Nov 12, 2019

What does this PR do?

  • refactor core server.
  • internal provider.

Motivation

Better separation of concerns in the Traefik core.

Split Server into:

  • ConfigurationWatcher: Listens to provider and merges configuration in a configuration
  • TCPEntryPoints: Allows operations on all TCPEntryPoint (start, switch, stop)
  • TCPRouterFactory: Creates the TCP routers per entry point from configuration

Remove RouteAppenderFactory, replaced by the internal provider.

Fixes #5374

More

  • Added/updated tests
  • Added/updated documentation

Additional Notes

Co-authored-by: Julien Salleyron julien.salleyron@gmail.com

@ldez ldez added this to To review in v2 via automation Nov 12, 2019
@ldez ldez added this to the 2.1 milestone Nov 12, 2019
@ldez ldez force-pushed the feature/server-refactor branch 2 times, most recently from 1902617 to 366ef9a Compare November 12, 2019 13:06
Copy link
Member

@juliens juliens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

docs/content/observability/metrics/prometheus.md Outdated Show resolved Hide resolved
docs/content/operations/ping.md Outdated Show resolved Hide resolved
docs/content/operations/ping.md Outdated Show resolved Hide resolved
pkg/api/handler.go Outdated Show resolved Hide resolved
Copy link
Member

@jbdoumenjou jbdoumenjou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@mpl mpl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First round, half of the review done.

docs/content/observability/metrics/prometheus.md Outdated Show resolved Hide resolved
docs/content/operations/ping.md Outdated Show resolved Hide resolved
integration/access_log_test.go Show resolved Hide resolved
integration/docker_compose_test.go Outdated Show resolved Hide resolved
integration/docker_compose_test.go Outdated Show resolved Hide resolved
pkg/provider/traefik/internal.go Show resolved Hide resolved
pkg/provider/traefik/internal.go Outdated Show resolved Hide resolved
pkg/provider/traefik/internal.go Show resolved Hide resolved
pkg/server/configurationwatcher.go Outdated Show resolved Hide resolved
pkg/server/configurationwatcher.go Show resolved Hide resolved
pkg/server/middleware/chainbuilder.go Outdated Show resolved Hide resolved
pkg/server/middleware/chainbuilder.go Outdated Show resolved Hide resolved
pkg/server/middleware/chainbuilder.go Outdated Show resolved Hide resolved
@traefiker traefiker merged commit 424e2a9 into traefik:master Nov 14, 2019
v2 automation moved this from To review to Done Nov 14, 2019
@ldez ldez deleted the feature/server-refactor branch November 14, 2019 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
v2
Done
Development

Successfully merging this pull request may close these issues.

Dashboard behind PathPrefix in 2.0 fails to load static assets
5 participants