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

Fix ingress hostname extract logic for syncCatalog #4482

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

oscar-dela
Copy link

@oscar-dela oscar-dela commented Feb 26, 2025

Changes proposed in this PR

In the current implementation, when user enable syncCatalog.ingress.enabled, the control plane will register service with its ingress rule host to consul as address.

However, if the ingress DNS is leverage consul, the host name won't be existed at the moment, and consul will solve it into 127.0.0.1 at the end.

Comparing with the case of syncCatalog.ingress.loadBalancerIPs enabled, it should be registered with ingress.Status.LoadBalancer.Ingress[*].Hostname to make consul solve the service DNS to the cluster load balancer rather than the non-exists host entry.

How I've tested this PR

  1. Followed the contribution guide to run the tests.
  2. Build the control-plane container, and deploy it with helm chart into my testing Kubernetes cluster to verify it works.

How I expect reviewers to test this PR

Checklist

@oscar-dela oscar-dela requested a review from a team as a code owner February 26, 2025 07:00
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.

1 participant