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 port indexer to be sure a service port declaration is unique #529

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

glours
Copy link
Collaborator

@glours glours commented Jan 16, 2024

Added a portIndexer checking that for a service the same port declaration is present only once, especially when merging multiple compose configuration

@glours glours requested a review from ndeloof as a code owner January 16, 2024 16:57
@glours glours self-assigned this Jan 16, 2024
@glours glours requested review from milas and jhrotko January 16, 2024 16:57
override/uncity.go Outdated Show resolved Hide resolved
if !ok {
mode = "ingress"
}
return fmt.Sprintf("%s:%s:%d/%s/%s", host, published, target, protocol, mode), nil
Copy link
Collaborator

Choose a reason for hiding this comment

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

propose docker/go-connections#111 so we can rely on some more canonical presentation for a port mapping

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Let's do that as a follow up PR when it will be approve and release 👍

@glours glours force-pushed the add-port-unique-indexer branch from e1e46a4 to 000b11a Compare January 17, 2024 10:18
@glours glours enabled auto-merge (rebase) January 17, 2024 10:18
@glours glours merged commit 3b9fc71 into compose-spec:main Jan 17, 2024
8 checks passed
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.

3 participants