-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Make listener and metrics ports configurable #1647
Conversation
This option lets you specifiy the TCP port that argocd-server should use to listen for incoming connections. Non-breaking: If not specified, the default value of 8080 will be used as ever since.
Non-breaking: Will use the standard ports as default if parameters are not specified.
Is CI still broken? I think the errors thrown at me are weird: From "test" step: From "build-e2e" step: On my local workstation, both |
Reviewing. |
That failed test is flakey. |
Codecov Report
@@ Coverage Diff @@
## master #1647 +/- ##
==========================================
- Coverage 32.56% 32.52% -0.04%
==========================================
Files 71 71
Lines 10814 11030 +216
==========================================
+ Hits 3522 3588 +66
- Misses 6793 6920 +127
- Partials 499 522 +23
Continue to review full report at Codecov.
|
This passes all tests locally. |
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.
I think this looks good. @alexmt
@alexec Thanks for taking the time to review the changes! I changed --listen-port argument to be --port, I think you are right and this is more intuitive and also more consistent with other command line arguments "out there". As for displaying default values in the usage summary, this is also a valid request. Fortunately, Cobra already does that for us when a default value for a given parameter was set, and it does not need to be written in the parameter's help text explicitly: [eris@docker-build argo-cd]$ ./dist/argocd-server --help | egrep -- '--(|metrics-)port' |
Add the ability to specify the listener ports for API server and repo server processes as well as the listener ports for the metrics server of API server, repo server and application conroller. I found having this possibility most useful on my local dev machine - especially for executing the E2E tests - where other processes are already listening on some of the default ports used by ArgoCD.
This change:
--port
parameter forargocd-server
andargocd-repo-server
--metrics-port
parameter forargocd-server
,argocd-repo-server
andargocd-application-controller
If none of the parameters are specified, previous default values are used, so this change should be non-breaking.