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

API: remove configuration of Entrypoint and Middlewares #5119

Merged
merged 4 commits into from
Jul 19, 2019

Conversation

mpl
Copy link
Collaborator

@mpl mpl commented Jul 18, 2019

What does this PR do?

This PR removes the Middlewares and Entrypoint fields of the API handler configuration. As we're probably going to redo the routing and TLS handling (among other things) of other handlers (such as Ping, Rest provider, Prometheus metrics, etc) in the same way we're going to do it for the API handler, this PR also removes similarly extraneous fields for these as well.

Motivation

This change comes in preparation of a a rework of the API handler configuration, which will define how traffic is routed to it, how we handle TLS with it, etc.
We envision that the Entrypoint and Middlewares are not going to be part of its configuration anymore when we redo it, so remove them as of now, so that we don't have to break the configuration later on.

More

  • Added/updated tests
  • Added/updated documentation

Additional Notes

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

Copy link
Contributor

@dtomcej dtomcej left a comment

Choose a reason for hiding this comment

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

LGTM
:shipit:

Copy link
Collaborator

@SantoDE SantoDE left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks! :)

Copy link
Contributor

@ldez ldez left a comment

Choose a reason for hiding this comment

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

LGTM

@traefiker traefiker merged commit 092aa8f into traefik:v2.0 Jul 19, 2019
v2 automation moved this from To review to Done Jul 19, 2019
@ldez ldez mentioned this pull request Jul 22, 2019
@cyberlooper

This comment has been minimized.

@mpl mpl deleted the cleanapi branch September 18, 2019 09:14
davidalger added a commit to wardenenv/warden that referenced this pull request Sep 19, 2019
This resolves "command traefik error: field not found, node: redirect" errors that put Traefik into an endless restart loop.
See traefik/traefik#5119 for changes causing the BC break; this is a problem since Warden currently leverages the removed configuration settings in the TOML file that's generated and passed into the Traefik container.

Thanks to @magedevjosh for finding and reporting this issue!
@juliens juliens mentioned this pull request Sep 23, 2019
2 tasks
ldez pushed a commit to waitingsong/traefik that referenced this pull request Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api kind/enhancement a new or improved feature. size/S
Projects
No open projects
v2
Done
Development

Successfully merging this pull request may close these issues.

None yet

7 participants