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

use container ports in tasks SRV records #519

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

vixns
Copy link

@vixns vixns commented May 8, 2018

No description provided.

@mesosphere-ci
Copy link
Collaborator

Can one of the admins verify this patch?

Copy link
Contributor

@jdef jdef left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. Couple of suggestions:

  1. Please add unit tests that cover the port mapping case. Record generation is complicated and we rely on unit tests to help guard against accidental breakage.
  2. Does this work the same for both Docker- and UCR-containerized tasks? If not, can you make it do so?
  3. This will break in clusters where people are assuming SRV always points to the host port. Please gate this functionality behind a configuration flag that defaults to the current, host-port based behavior.
  4. Is there a relationship between this code and the value of the config IPSources? If so, that should be very clearly documented so that people aren't fighting confusing configuration combinations.

records/state/state.go Outdated Show resolved Hide resolved
@vixns
Copy link
Author

vixns commented May 8, 2018

UseContainerPorts is not a good name, SRVTaskRecordsUseContainerPortsWithNetinfo has a better semantic, but may be too long, any idea for a better option name ?

@jdef
Copy link
Contributor

jdef commented May 8, 2018 via email

@mesosphere-ci
Copy link
Collaborator

Can one of the admins verify this patch?

Copy link
Contributor

@jdef jdef left a comment

Choose a reason for hiding this comment

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

made another pass over this PR. @vixns are you still interested in seeing this land?

records/generator.go Outdated Show resolved Hide resolved
records/generator.go Outdated Show resolved Hide resolved
records/generator.go Outdated Show resolved Hide resolved
records/generator.go Outdated Show resolved Hide resolved
records/generator.go Outdated Show resolved Hide resolved
records/generator_perf_test.go Outdated Show resolved Hide resolved
records/state/state.go Show resolved Hide resolved
@vixns
Copy link
Author

vixns commented Apr 13, 2019

oops rebased on wrong branch, sorry. Re-rebased and force pushed.

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.

None yet

5 participants