Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

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

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

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants