-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
ui: Remove any trailing fullstop/period DNS characters from Gateways UI API #9752
Conversation
Previous t othis commit, the API response would include Gateway Addresses in the form `domain.name.:8080`, which due to the addition of the port is probably not the expected response. This commit rightTrims any `.` characters from the end of the domain before formatting the address to include the port resulting in `domain.name:8080`
🤔 Double check that this PR does not require a changelog entry in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for doing this!
We should probably add a changelog entry for this as well. |
Thanks @crhino! I've added a changelog so I'll merge this a little later on 👍 |
🍒 If backport labels were added before merging, cherry-picking will start automatically. To retroactively trigger a backport after merging, add backport labels and re-run https://circleci.com/gh/hashicorp/consul/332203. |
🍒✅ Cherry pick of commit 5892e75 onto |
…UI API (#9752) Previous to this commit, the API response would include Gateway Addresses in the form `domain.name.:8080`, which due to the addition of the port is probably not the expected response. This commit rightTrims any `.` characters from the end of the domain before formatting the address to include the port resulting in `domain.name:8080`
🍒✅ Cherry pick of commit 5892e75 onto |
…UI API (#9752) Previous to this commit, the API response would include Gateway Addresses in the form `domain.name.:8080`, which due to the addition of the port is probably not the expected response. This commit rightTrims any `.` characters from the end of the domain before formatting the address to include the port resulting in `domain.name:8080`
…UI API (#9752) Previous to this commit, the API response would include Gateway Addresses in the form `domain.name.:8080`, which due to the addition of the port is probably not the expected response. This commit rightTrims any `.` characters from the end of the domain before formatting the address to include the port resulting in `domain.name:8080`
Previous to this commit, the API response for getting information about the upstreams for a gateway (
/v1/internal/ui/gateway-services-nodes/:gateway
) would include Gateway Addresses in the formdomain.name.:8080
, which due to the addition of the port is probably not the expected format (the trailing.
is DNS not Address:Port URLs).This commit rightTrims any
.
characters from the end of the domain before formatting the address to include the port resulting indomain.name:8080
One thing I'm unsure of, whilst this 'fixes' things for displaying this in the UI, does this effect anything else backend related? I had a quick search to see is the
.Addresses()
method was being used elsewhere, and I couldn't see anything, but would be good to double check.