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

API: change api port to api addr, rename RunV2 to Run. #447

Merged
merged 2 commits into from
Aug 18, 2017

Conversation

KeyboardNerd
Copy link
Contributor

Fixes #446

api/v3/server.go Outdated
@@ -149,7 +149,7 @@ func servePrometheus(mux *http.ServeMux) {

// Run initializes grpc and grpc gateway api services on the same port
func Run(GrpcPort int, tlsConfig *tls.Config, CertFile, KeyFile string, store database.Datastore) {
l, err := net.Listen("tcp", fmt.Sprintf("localhost:%d", GrpcPort))
l, err := net.Listen("tcp", fmt.Sprintf(":%d", GrpcPort))
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we pass the whole addr here rather than just the port?

# This is an unencrypted endpoint useful for load balancers to check to healthiness of the clair server.
healthport: 6061
healthaddr: 0.0.0.0:6061
Copy link
Contributor

Choose a reason for hiding this comment

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

wrap these in quotes, just in case it confuses the yaml

addr: "0.0.0.0:6060"

@KeyboardNerd KeyboardNerd changed the title API: changed to listen to all available interfaces, rename RunV2->Run. API: change api port to api addr, rename RunV2 to Run. Aug 18, 2017
@jzelinskie jzelinskie merged commit 355f1e6 into quay:master Aug 18, 2017
KeyboardNerd pushed a commit to KeyboardNerd/clair that referenced this pull request Feb 2, 2018
API: change api port to api addr, rename RunV2 to Run.
@KeyboardNerd KeyboardNerd deleted the ancestry_ branch March 11, 2018 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants