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

Support external name service on global default backend #4564

Conversation

kippandrew
Copy link

What does this PR do?

This PR adds support for global backends pointing to an ExternalName services. This is accomplished by checking the service type when adding the global default backend. If the service type is an ExternalName service, the backend is mapped to the ExternalName service's url. This is basically a copy paste of what is done with normal backends.

Motivation

It would be useful in my environment (and others I'm sure) for the Kubernetes provider to support a global default backend that's points to an ExternalName service. This is already supported for regular backends so I imagine not supporting it here was an oversight.

More

  • Added/updated tests

Additional Notes

None

@kippandrew
Copy link
Author

Bump! Any feedback on this PR? Thanks for your attention.

@dtomcej
Copy link
Contributor

dtomcej commented Mar 11, 2019

I approve the design of this PR. @kippandrew is correct this is intended behavior.

@kippandrew
Copy link
Author

Bump. Any possibility someone can take a look at this? Thanks!

@ldez ldez added kind/bug/fix a bug fix and removed kind/enhancement a new or improved feature. labels Mar 27, 2019
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

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
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 force-pushed the v1.7-kubernetes-default-backend-external-name branch from 7c08af2 to 154dfc9 Compare March 27, 2019 16:24
@traefiker traefiker merged commit 57ae9a8 into traefik:v1.7 Mar 27, 2019
@jbdoumenjou jbdoumenjou mentioned this pull request Mar 29, 2019
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants