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

use service datacenter for dns name #8704

Merged
merged 2 commits into from
Sep 22, 2020
Merged

Conversation

hanshasselberg
Copy link
Member

I am pretty sure this was an oversight, it should be the service datacenter here. I did not check for the other places, but will be.

@dnephin dnephin requested a review from a team September 18, 2020 15:55
@crhino
Copy link
Contributor

crhino commented Sep 21, 2020

Ah ok, I see the issue here. The problem is that we are using the UI node's own configured datacenter to construct the DNS name, rather than the datacenter the ingress service is actually in.

Since the structs.GatewayService does not currently save the datacenter in which the service is registered, we probably want to use the args.Datacenter value of the request struct to get the correct value.

Copy link
Member

@mkeeler mkeeler left a comment

Choose a reason for hiding this comment

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

LGTM. Looks like the change @crhino requested has already been done.

Copy link
Contributor

@crhino crhino left a comment

Choose a reason for hiding this comment

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

Yep, LGTM. Checked the TestAgent_RegisterServiceDeregisterService_Sidecar failure locally, and it passed when I ran it.

@hanshasselberg hanshasselberg merged commit a89ee1a into master Sep 22, 2020
@hanshasselberg hanshasselberg deleted the fix_dns_name_for_gateways branch September 22, 2020 18:34
@hashicorp-ci
Copy link
Contributor

🍒❌ Cherry pick of commit a89ee1a onto release/1.8.x failed! Build Log

@crhino crhino mentioned this pull request Sep 23, 2020
3 tasks
rboyer pushed a commit that referenced this pull request Sep 25, 2020
* Use args.Datacenter instead of configured datacenter
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.

5 participants