registrator
registrator copied to clipboard
Flag to append internal service port to Service Name when one port is exposed
Hi all,
we have a use case who needs always expose the Internal Service Port in the Service Name.
I think it could be useful, because services always will have the same format and can be easily parsed with ^\w+-\d+$
.
This behavior could be setted with a flag appendInternalPort
by default false to maintain backward compatible.
@ch3lo Maybe PR title would better reflect the code changes if it was something like "Flag/Option to unconditionally append internal service port number to Service Name"