-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jzelinskie
suggested changes
Aug 18, 2017
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)) |
There was a problem hiding this comment.
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?
KeyboardNerd
force-pushed
the
ancestry_
branch
from
August 18, 2017 17:54
79cbc64
to
6dded4e
Compare
jzelinskie
suggested changes
Aug 18, 2017
config.example.yaml
Outdated
# 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 |
There was a problem hiding this comment.
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
force-pushed
the
ancestry_
branch
from
August 18, 2017 20:01
6dded4e
to
d8c8c95
Compare
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
KeyboardNerd
force-pushed
the
ancestry_
branch
from
August 18, 2017 22:24
d8c8c95
to
0151dba
Compare
jzelinskie
approved these changes
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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #446