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

Pass xds host/port to controller #10688

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

jenshu
Copy link
Contributor

@jenshu jenshu commented Feb 24, 2025

Fixes #10659
Fixes #10660

GlooXdsPortName = "grpc-xds"
// GetXdsServiceName returns the name of the Kubernetes Service that serves xDS config.
func GetXdsServiceName() string {
if name := os.Getenv("XDS_SERVICE_NAME"); name != "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

any reason to not treat these as "settings"? (ref:. #10666 (comment))

not blocking but would prefer to keep things consistent (even if we do end up moving away from envconfig)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it was just quicker to plumb through this way, and we have an issue filed for later to consolidate the ways we pass config. but mostly, it's because i forgot about your comment til after i already implemented it haha. but i think it's a good idea, let me try using the Settings

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@jenshu jenshu changed the title Pass kgateway service name to controller Pass xds host/port to controller Feb 25, 2025
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.

make control plane xds port configurable kgateway service name can get out of sync between helm vs code
2 participants