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

feat(kuma-cp) coordinates webservice #369

Merged
merged 3 commits into from
Oct 29, 2019
Merged

Conversation

jakubdyszkiewicz
Copy link
Contributor

Summary

Endpoint that serves coordinates of various services in Kuma.

Questions
Should Kuma DP also use API Server to retrieve bootstrap coordinates? Right now we configure it with bootstrap url.

Issues resolved

Fix #315

pkg/api-server/coordinates_ws.go Outdated Show resolved Hide resolved
pkg/api-server/coordinates_ws.go Outdated Show resolved Hide resolved
@@ -74,6 +74,8 @@ type Config struct {
Defaults *Defaults `yaml:"defaults"`
// Reports configuration
Reports *Reports `yaml:"reports"`
// Hostname on which Kuma is exposed
Hostname string `yaml:"hostname" envconfig:"kuma_hostname"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's group it under General field and move it to the top of Config

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe rename it into one of RecommendedHostname, AdvertisedHostname, etc

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What goes to General? Should Environment also be in General?

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's start by moving only AdvertisedHostname into General.

And we can open a separate issue for doing the same for Environment.

pkg/config/app/kuma-cp/config.go Outdated Show resolved Hide resolved
@yskopets
Copy link
Contributor

Should Kuma DP also use API Server to retrieve bootstrap coordinates? Right now we configure it with bootstrap url.

Yes. There is #314 for that

Copy link
Contributor

@yskopets yskopets left a comment

Choose a reason for hiding this comment

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

It's all go now. 👍

I would still prefer AdvertisedHostname to be moved into General

@jakubdyszkiewicz jakubdyszkiewicz merged commit aad2685 into master Oct 29, 2019
@jakubdyszkiewicz
Copy link
Contributor Author

moved into general

@jakubdyszkiewicz jakubdyszkiewicz deleted the feature/locations branch December 23, 2019 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants