Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Conversation

@mikesir87
Copy link
Contributor

The Compose spec doesn't provide a default value, but the code
was defaulting to TCP in the service protocol, just not in the
name. If no protocol was specified, it would cause an invalid
service name (eg, "80-")

What I did

I updated the service name to use the same toProtocol function to remove the option for an invalid service name.

Signed-off-by: Michael Irwin <[email protected]>

The Compose spec doesn't provide a default value, but the code
was defaulting to TCP in the service protocol, just not in the
name. If no protocol was specified, it would cause an invalid
service name (eg, "80-")
@github-actions github-actions bot added the kube Kubernetes backend label Jul 12, 2021
Copy link
Contributor

@mat007 mat007 left a comment

Choose a reason for hiding this comment

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

Makes sense, thanks!
@aiordache does that look good to you?

@mat007 mat007 merged commit 7b03b04 into docker-archive:main Jul 28, 2021
@mikesir87 mikesir87 deleted the allow-unspecified-protocol-on-port branch July 28, 2021 06:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

kube Kubernetes backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants